-
Notifications
You must be signed in to change notification settings - Fork 94
docs: add supergraph yaml info #2493
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
base: main
Are you sure you want to change the base?
Conversation
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 1 changed, 0 removed
Build ID: 3671dafe8bc7e6cf1226237a URL: https://www.apollographql.com/docs/deploy-preview/3671dafe8bc7e6cf1226237a |
@@ -57,41 +57,9 @@ You can also pass config via stdin: | |||
cat ./supergraph.yaml | rover supergraph compose --config - | |||
``` | |||
|
|||
### From a Studio variant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this section down since I feel explaining the supergraph.yaml takes precedence
### YAML configuration file | ||
|
||
The supergraph configuration file (often referred to as `supergraph.yaml`) includes configuration options for each of your [subgraphs](/federation/building-supergraphs/subgraphs-overview/). The following example file configures a supergraph with two subgraphs (`films` and `people`): | ||
The supergraph configuration file (often referred to as `supergraph.yaml`) includes configuration options for each of your subgraphs. The following example file configures a supergraph with two subgraphs (`films` and `people`): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to use hover text (which includes a learn more link) rather than peppering links everywhere.
@@ -136,44 +103,22 @@ subgraphs: | |||
subgraph: actors | |||
``` | |||
|
|||
#### Variable expansion | |||
#### Subgraph configuration fields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gocamille , could you please review this new section to make sure it captures what you were describing?
@@ -219,6 +164,73 @@ In some cases, you might want Rover to skip updating its composition library to | |||
|
|||
In these cases, you can pass the `--skip-update` flag to `rover supergraph compose`. If you provide this flag, your `supergraph.yaml` file must specify a `federation_version` (which is recommended regardless). | |||
|
|||
### Composition output format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These sections are untouched, just moved from above. (Disappointed in you GH diffing)
Explain options in
supergraph.yaml