Skip to content

Commit

Permalink
Fix federation Query/Mutation extends documentation (#4201)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Rosenberger <[email protected]>
  • Loading branch information
Glen-Moonpig and abernix authored Jun 25, 2020
1 parent 59e1965 commit 753e60c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/federation/entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ query GetTopProductAvailability {

## The `Query` and `Mutation` types

In Apollo Federation, the `Query` and `Mutation` base types originate in the gateway itself. Consequently, _all_ of your implementing services should [extend](#extending) these types to add the operations they support.
In Apollo Federation, the `Query` and `Mutation` base types originate in the graph composition itself and _all_ of your implementing services are automatically treated as [extending](#extending) these types to add the operations they support without explicitly adding the `extends` keyword.

For example, the `products` service might extend the root `Query` type to add a `topProducts` query, like so:

```graphql:title=products
extend type Query {
type Query {
topProducts(first: Int = 5): [Product]
}
```
Expand Down

0 comments on commit 753e60c

Please sign in to comment.