Skip to content

Commit adc03a3

Browse files
authored
docs: review subgraph should contribute to rating (#3252)
It seems a bit counterintuitive that the `Reviews` subgraph contributes to the `inStock` field of the `Product` type. I'd like to update the code example so that it contributes to the `rating` field instead. This change is also consistent with the code example in the overview section of [the document](http://apollographql.com/docs/graphos/schema-design/federated-schemas/entities/intro).
1 parent e9c5a0a commit adc03a3

File tree

1 file changed

+1
-1
lines changed
  • docs/source/schema-design/federated-schemas/entities

1 file changed

+1
-1
lines changed

docs/source/schema-design/federated-schemas/entities/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ type Product @key(fields: "upc") {
106106
```graphql title="Reviews subgraph"
107107
type Product @key(fields: "productUpc") {
108108
productUpc: ID!
109-
inStock: Boolean!
109+
rating: Int!
110110
}
111111
```
112112

0 commit comments

Comments
 (0)