@@ -247,7 +247,7 @@ In this example, no `@inaccessible` annotation is applied to the query root, so
247
247
the rule is satisfied.
248
248
249
249
``` graphql example
250
- extend schema {
250
+ schema {
251
251
query : Query
252
252
}
253
253
@@ -266,7 +266,7 @@ violated. `QUERY_ROOT_TYPE_INACCESSIBLE` is raised because a schema's root query
266
266
type cannot be hidden from consumers.
267
267
268
268
```graphql counter-example
269
- extend schema {
269
+ schema {
270
270
query : Query
271
271
}
272
272
@@ -1139,7 +1139,7 @@ other error conditions that may have to be propagated to the client.
1139
1139
For example , the following usage is recommended :
1140
1140
1141
1141
```graphql example
1142
- extend type Query {
1142
+ type Query {
1143
1143
userById (id : ID ! ): User @lookup
1144
1144
}
1145
1145
@@ -1157,7 +1157,7 @@ recommendation.
1157
1157
This counter -example demonstrates an invalid usage :
1158
1158
1159
1159
```graphql counter -example
1160
- extend type Query {
1160
+ type Query {
1161
1161
userById (id : ID ! ): User ! @lookup
1162
1162
}
1163
1163
@@ -1212,7 +1212,7 @@ enforces that any field annotated with `@lookup` must have a return type that is
1212
1212
For example , the following usage is valid :
1213
1213
1214
1214
```graphql example
1215
- extend type Query {
1215
+ type Query {
1216
1216
userById (id : ID ! ): User @lookup
1217
1217
}
1218
1218
@@ -1227,7 +1227,7 @@ In this example, `userById` returns a `User` object, satisfying the requirement.
1227
1227
This counter -example demonstrates an invalid usage :
1228
1228
1229
1229
```graphql counter -example
1230
- extend type Query {
1230
+ type Query {
1231
1231
usersByIds (ids : [ID ! ]! ): [User ! ] @lookup
1232
1232
}
1233
1233
@@ -2049,7 +2049,7 @@ type User {
2049
2049
}
2050
2050
2051
2051
# Schema B: `User` is an interface
2052
- extend interface User {
2052
+ interface User {
2053
2053
id : ID !
2054
2054
friends : [User ! ]!
2055
2055
}
0 commit comments