Skip to content

Commit 736ac24

Browse files
authored
[docs] fix schema federation example
1 parent 0352639 commit 736ac24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/federated/federated-schemas.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ schema {
5757
union _Entity = Product
5858

5959
type Product @key(fields : "id") {
60-
description: Int!
61-
id: String!
60+
description: String!
61+
id: Int!
6262
}
6363

6464
type Query @extends {
6565
_entities(representations: [_Any!]!): [_Entity]!
6666
_service: _Service
67-
product(id: Int!): Product!
67+
product(id: Int!): Product
6868
}
6969

7070
type _Service {
@@ -149,7 +149,7 @@ schema {
149149

150150
type Product {
151151
description: String!
152-
id: String!
152+
id: Int!
153153
reviews: [Review!]!
154154
}
155155

@@ -159,7 +159,7 @@ type Review {
159159
}
160160

161161
type Query {
162-
product(id: String!): Product!
162+
product(id: String!): Product
163163
}
164164
```
165165

0 commit comments

Comments
 (0)