Archived: GitOps config repo for an Apollo GraphQL federated graph with a supergraph router and subgraph services deployed to Kubernetes.
27
stars
7
forks
source link
Bump supergraph-router@prod from a488801 to 72898e6 #92
Closed
supergraph-demo-bot closed 3 years ago
Bump supergraph-router@prod from a488801 to 72898e6
supergraph-router@prod changes
```diff diff --git a/router/prod/supergraph.graphql b/router/prod/supergraph.graphql index 3a26843..3302254 100644 --- a/router/prod/supergraph.graphql +++ b/router/prod/supergraph.graphql @@ -1,7 +1,4 @@ -schema - @core(feature: "https://specs.apollo.dev/core/v0.1"), - @core(feature: "https://specs.apollo.dev/join/v0.1") -{ +schema @core(feature: "https://specs.apollo.dev/core/v0.1") @core(feature: "https://specs.apollo.dev/join/v0.1") @apollo_studio_metadata(launchId: "9de63530-f96a-4e63-b32f-209155c4a86b", buildId: "9de63530-f96a-4e63-b32f-209155c4a86b", checkId: null) { query: Query } @@ -28,25 +25,19 @@ type DeliveryEstimates { scalar join__FieldSet enum join__Graph { - INVENTORY @join__graph(name: "inventory" url: "http://inventory:4000/graphql") - PRODUCTS @join__graph(name: "products" url: "http://products:4000/graphql") - USERS @join__graph(name: "users" url: "http://users:4000/graphql") + INVENTORY @join__graph(name: "inventory", url: "http://inventory:4000/graphql") + PRODUCTS @join__graph(name: "products", url: "http://products:4000/graphql") + USERS @join__graph(name: "users", url: "http://users:4000/graphql") } -type Product - @join__owner(graph: PRODUCTS) - @join__type(graph: PRODUCTS, key: "id") - @join__type(graph: PRODUCTS, key: "sku package") - @join__type(graph: PRODUCTS, key: "sku variation{id}") - @join__type(graph: INVENTORY, key: "id") -{ +type Product @join__owner(graph: PRODUCTS) @join__type(graph: PRODUCTS, key: "id") @join__type(graph: PRODUCTS, key: "sku package") @join__type(graph: PRODUCTS, key: "sku variation{id}") @join__type(graph: INVENTORY, key: "id") { + createdBy: User @join__field(graph: PRODUCTS, provides: "totalProductsCreated") + delivery(zip: String): DeliveryEstimates @join__field(graph: INVENTORY, requires: "dimensions{size weight}") + dimensions: ProductDimension @join__field(graph: PRODUCTS) id: ID! @join__field(graph: PRODUCTS) - sku: String @join__field(graph: PRODUCTS) package: String @join__field(graph: PRODUCTS) + sku: String @join__field(graph: PRODUCTS) variation: ProductVariation @join__field(graph: PRODUCTS) - dimensions: ProductDimension @join__field(graph: PRODUCTS) - createdBy: User @join__field(graph: PRODUCTS, provides: "totalProductsCreated") - delivery(zip: String): DeliveryEstimates @join__field(graph: INVENTORY, requires: "dimensions{size weight}") } type ProductDimension { @@ -63,12 +54,10 @@ type Query { product(id: ID!): Product @join__field(graph: PRODUCTS) } -type User - @join__owner(graph: USERS) - @join__type(graph: USERS, key: "email") - @join__type(graph: PRODUCTS, key: "email") -{ +type User @join__owner(graph: USERS) @join__type(graph: USERS, key: "email") @join__type(graph: PRODUCTS, key: "email") { email: ID! @join__field(graph: USERS) name: String @join__field(graph: USERS) totalProductsCreated: Int @join__field(graph: USERS) } + +directive @apollo_studio_metadata(launchId: String, buildId: String, checkId: String) on SCHEMA ```