-
-
Notifications
You must be signed in to change notification settings - Fork 834
enhance(utils/astFromSchema): support GraphQLSchema instances without operation types defined
#7685
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: master
Are you sure you want to change the base?
enhance(utils/astFromSchema): support GraphQLSchema instances without operation types defined
#7685
Conversation
…tances w…" This reverts commit 2fe123a.
🦋 Changeset detectedLatest commit: 7b3e869 The changes in this PR will be included in the next version bump. This PR includes changesets to release 26 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis change adds support for federation-style subgraph schemas in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧬 Code graph analysis (1)packages/utils/tests/print-schema-with-directives.spec.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
💻 Website PreviewThe latest changes are available as preview in: https://pr-7685.graphql-tools.pages.dev |
Support "federation/subgraph style" schemas in
astFromSchemaandprintSchemaWithDirectivesIf a
GraphQLSchemadoesn't have any defined operation types, we should print the schema definition as an extension rather than omitting it entirely.They are not a valid schema on their own, but they are valid subgraph schemas in a federation setup, and it is possible to build such schemas with
assumeValidoptions.POTENTIAL BREAKING CHANGE:
This can be a breaking change because now the schema above will be printed as the input, previously
extend schemawas converted toschema {}.