Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix federation Query/Mutation extends documentation #4201

Merged
merged 4 commits into from
Jun 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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