8000 docs: add supergraph yaml info by Meschreiber · Pull Request #2493 · apollographql/rover · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Meschreiber
Copy link
Contributor

Explain options in supergraph.yaml

@svc-apollo-docs
Copy link
Collaborator
svc-apollo-docs commented Apr 14, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 1 changed, 0 removed
* (developer-tools)/rover/commands/supergraphs.mdx

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
Copy link
Contributor Author

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`):
Copy link
Contributor Author

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
Copy link
Contributor Author
@Meschreiber Meschreiber Apr 14, 2025

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
Copy link
Contributor Author

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)

@Meschreiber Meschreiber changed the title Docs/add supergraph yaml info docs: add supergraph yaml info Apr 16, 2025
@pubmodmatt pubmodmatt added the docs 📝 improvements or additions to docs on the docs site label Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs 📝 improvements or additions to docs on the docs site
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0