Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalSenn committed Jan 2, 2025
1 parent 5e54948 commit 4067b56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/Section 4 -- Composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -3230,12 +3230,12 @@ All schemas agree on having a required argument `author` for the `books` field:
```graphql example
# Schema A
type Query {
books(author: String!): [Book]
books(author: String!): [Book] @shareable
}

# Schema B
type Query {
books(author: String!): [Book]
books(author: String!): [Book] @shareable
}
```

Expand Down Expand Up @@ -3269,18 +3269,18 @@ schema but not in the other. This will result in a
```graphql counter-example
# Schema A
type Query {
books(author: String!): [Book]
books(author: String!): [Book] @shareable
}

# Schema B
type Query {
books: [Book]
books: [Book] @shareable
}
```

In the following counter-example, the `author` argument on the `books` field in
Schema A specifies a dependency on the `author` field in Schema C. The `author`
argument on the `books` field in Schema B is **NOT** optional. This will result
argument on the `books` field in Schema B is **not** optional. This will result
in a `REQUIRED_ARGUMENT_MISSING_IN_SOME_SCHEMA` error.

```graphql counter-example
Expand Down

0 comments on commit 4067b56

Please sign in to comment.