Skip to content

Document compiling GraphQL SDL split across multiple files - #6764

Merged
devalog merged 4 commits into
mainfrom
devin/1787850379-graphql-multi-file-sdl
Aug 31, 2026
Merged

devalog merged 4 commits into
mainfrom
devin/1787850379-graphql-multi-file-sdl

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Teams that run Apollo Federation keep their GraphQL schema in several SDL files, one per subgraph. Fern's GraphQL importer used to parse each file on its own, so those projects couldn't generate an API reference at all. Fern now parses GraphQL specs that share a namespace together and merges them into one schema. No config migration is needed, and single-file schemas behave exactly as before.

Implements docs for: feat(cli): compile GraphQL SDL split across files into one schema (fern-api/fern#17513)

Pages changed

  • fern/products/docs/pages/api-references/generate-graphql-ref.mdx — new "Compile a schema split across multiple files" section: a generators.yml example with two graphql: specs sharing a name:, the grouping rule, and the merge behavior (federation directives stripped, @inaccessible omitted, extend type folded in, @deprecated surfaced, first-wins conflicts with a warning). A <Warning> covers the behavior change for workspaces that previously relied on last-wins resolution. The graphql and name <ParamField> descriptions were updated to match.
  • fern/products/docs/pages/changelog/2026-08-27.mdx — new changelog entry (api-reference, generators.yml) linking to the new section.

Checks

  • pre-commit run --files <changed>: passed (Vale 0 errors, 0 warnings, 0 suggestions).
  • fern check --warnings: 0 errors; the 8 warnings are preexisting and unrelated.

Link to Devin session: https://app.devin.ai/sessions/091d63e7b8644aca84888f2fb8fd4170
Open in Devin Desktop: https://app.devin.ai/desktop/session/091d63e7b8644aca84888f2fb8fd4170?variant=devin

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown
Contributor

devin-ai-integration Bot and others added 3 commits August 27, 2026 20:41
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devalog
devalog merged commit 0c684d5 into main Aug 31, 2026
4 checks passed
@devalog
devalog deleted the devin/1787850379-graphql-multi-file-sdl branch August 31, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant