Skip to content

Commit ce3d3f5

Browse files
committed
Remove extends from type definitions in Composition section
1 parent c3f4ff3 commit ce3d3f5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

spec/Section 4 -- Composition.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ In this example, no `@inaccessible` annotation is applied to the query root, so
247247
the rule is satisfied.
248248

249249
```graphql example
250-
extend schema {
250+
schema {
251251
query: Query
252252
}
253253

@@ -266,7 +266,7 @@ violated. `QUERY_ROOT_TYPE_INACCESSIBLE` is raised because a schema's root query
266266
type cannot be hidden from consumers.
267267

268268
```graphql counter-example
269-
extend schema {
269+
schema {
270270
query: Query
271271
}
272272

@@ -1139,7 +1139,7 @@ other error conditions that may have to be propagated to the client.
11391139
For example, the following usage is recommended:
11401140

11411141
```graphql example
1142-
extend type Query {
1142+
type Query {
11431143
userById(id: ID!): User @lookup
11441144
}
11451145

@@ -1157,7 +1157,7 @@ recommendation.
11571157
This counter-example demonstrates an invalid usage:
11581158

11591159
```graphql counter-example
1160-
extend type Query {
1160+
type Query {
11611161
userById(id: ID!): User! @lookup
11621162
}
11631163

@@ -1212,7 +1212,7 @@ enforces that any field annotated with `@lookup` must have a return type that is
12121212
For example, the following usage is valid:
12131213

12141214
```graphql example
1215-
extend type Query {
1215+
type Query {
12161216
userById(id: ID!): User @lookup
12171217
}
12181218

@@ -1227,7 +1227,7 @@ In this example, `userById` returns a `User` object, satisfying the requirement.
12271227
This counter-example demonstrates an invalid usage:
12281228

12291229
```graphql counter-example
1230-
extend type Query {
1230+
type Query {
12311231
usersByIds(ids: [ID!]!): [User!] @lookup
12321232
}
12331233

@@ -2049,7 +2049,7 @@ type User {
20492049
}
20502050

20512051
# Schema B: `User` is an interface
2052-
extend interface User {
2052+
interface User {
20532053
id: ID!
20542054
friends: [User!]!
20552055
}

0 commit comments

Comments
 (0)