Skip to content

Commit 4f24192

Browse files
authored
Update error code references in "Provides on Non-Composite Field" rule (#201)
1 parent 327166e commit 4f24192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/Section 4 -- Composition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,7 +1954,7 @@ on the composite type it returns. If a field's base type is not an object or
19541954
interface type (e.g., `String`, `Int`, `Boolean`, `Enum`, `Union`, or an `Input`
19551955
type), it cannot hold nested fields for `@provides` to select. Consequently,
19561956
attaching `@provides` to such a field is invalid and raises a
1957-
`PROVIDES_ON_NON_OBJECT_FIELD` error.
1957+
`PROVIDES_ON_NON_COMPOSITE_FIELD` error.
19581958

19591959
**Examples**
19601960

@@ -1980,7 +1980,7 @@ type User {
19801980

19811981
In this counter-example, `email` has a scalar base type (`String`). Because
19821982
scalars do not expose sub-fields, attaching `@provides` to `email` triggers a
1983-
`PROVIDES_ON_NON_OBJECT_FIELD` error.
1983+
`PROVIDES_ON_NON_COMPOSITE_FIELD` error.
19841984

19851985
```graphql counter-example
19861986
type User {

0 commit comments

Comments
 (0)