@graphql-hive/gateway-runtime 2.0.3 → 2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @graphql-hive/gateway-runtime
2
2
 
3
+ ## 2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
4
+ ### Minor Changes
5
+
6
+
7
+
8
+ - [#1458](https://github.com/graphql-hive/gateway/pull/1458) [`cb5e4f3`](https://github.com/graphql-hive/gateway/commit/cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb) Thanks [@ardatan](https://github.com/ardatan)! - New directive `@pubsubPublish` to publish the payload to the pubsub engine directly
9
+
10
+
11
+ ```graphql
12
+ extend schema
13
+ @link(
14
+ url: "https://specs.apollo.dev/federation/v2.6"
15
+ import: ["@key", "@composeDirective"]
16
+ )
17
+ @link(
18
+ url: "https://the-guild.dev/mesh/v1.0"
19
+ import: ["@pubsubOperation", "@pubsubPublish"]
20
+ )
21
+ @composeDirective(name: "@pubsubOperation")
22
+ @composeDirective(name: "@pubsubPublish")
23
+
24
+ directive @pubsubOperation(
25
+ pubsubTopic: String!
26
+ filterBy: String
27
+ result: String
28
+ ) on FIELD_DEFINITION
29
+
30
+ directive @pubsubPublish(pubsubTopic: String!) on FIELD_DEFINITION
31
+
32
+ type Query {
33
+ hello: String!
34
+ }
35
+ type Product @key(fields: "id") {
36
+ id: ID!
37
+ name: String!
38
+ price: Float!
39
+ }
40
+
41
+ type Mutation {
42
+ createProduct(name: String!, price: Float!): Product!
43
+ @pubsubPublish(pubsubTopic: "new_product")
44
+ }
45
+
46
+ type Subscription {
47
+ newProductSubgraph: Product!
48
+ @pubsubOperation(pubsubTopic: "new_product")
49
+ }
50
+ ```
51
+
52
+ ### Patch Changes
53
+
54
+ - Updated dependencies [[`cb5e4f3`](https://github.com/graphql-hive/gateway/commit/cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb)]:
55
+ - @graphql-mesh/fusion-runtime@1.2.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb
56
+ - @graphql-mesh/hmac-upstream-signature@2.0.1
57
+
3
58
  ## 2.0.3
4
59
  ### Patch Changes
5
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway-runtime",
3
- "version": "2.0.3",
3
+ "version": "2.1.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "@graphql-hive/signal": "^2.0.0",
56
56
  "@graphql-hive/yoga": "^0.42.2",
57
57
  "@graphql-mesh/cross-helpers": "^0.4.10",
58
- "@graphql-mesh/fusion-runtime": "^1.1.0",
58
+ "@graphql-mesh/fusion-runtime": "1.2.0-alpha-cb5e4f3ee67b8ef054f1fcf581125aaa3019f6bb",
59
59
  "@graphql-mesh/hmac-upstream-signature": "^2.0.1",
60
60
  "@graphql-mesh/plugin-response-cache": "^0.104.12",
61
61
  "@graphql-mesh/transport-common": "^1.0.2",