-
Couldn't load subscription status.
- Fork 352
feat(compose-cli): introspectionOptions
#8851
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
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds an optional introspectionOptions to loadGraphQLHTTPSubgraph, introduces defaults, and threads them into getIntrospectionQuery. Adds an e2e setup: subgraph service exposing a deprecated argument, Mesh compose config, package.json, and tests validating composition and execution via snapshots. Includes a changeset entry. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Dev as Dev Script
participant CLI as Compose CLI
participant Loader as loadGraphQLHTTPSubgraph
participant SG as Subgraph Server
participant GQL as GraphQL Introspection
Dev->>CLI: defineConfig({ subgraphs: [HTTP subgraph...] })
CLI->>Loader: loadGraphQLHTTPSubgraph(name, { endpoint, introspectionOptions? })
note over Loader: Apply DEFAULT_INTROSPECTION_OPTIONS if none provided
Loader->>GQL: getIntrospectionQuery(introspectionOptions)
Loader->>SG: POST /graphql (introspection query)
SG-->>Loader: introspection result (includes descriptions, deprecations, etc.)
Loader-->>CLI: SDL/metadata from introspection
CLI-->>Dev: Composed schema/supergraph
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 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 ignored due to path filters (2)
📒 Files selected for processing (6)
🧰 Additional context used🧬 Code graph analysis (2)e2e/deprecated-merging/mesh.config.ts (2)
e2e/deprecated-merging/deprecated-merging.test.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). (13)
🔇 Additional comments (15)
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 |
Apollo Federation Subgraph Compatibility Results
Learn more: |
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-mesh/compose-cli |
1.5.0-alpha-20251014113438-31059ca3d9020d53f08d8d81801965899cecbd27 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/apollo-link |
0.106.14-alpha-20251014113438-31059ca3d9020d53f08d8d81801965899cecbd27 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/migrate-config-cli |
1.7.0-alpha-20251014113438-31059ca3d9020d53f08d8d81801965899cecbd27 |
npm ↗︎ unpkg ↗︎ |
💻 Website PreviewThe latest changes are available as preview in: https://6c6337eb.graphql-mesh.pages.dev |
Add
introspectionOptionstoloadGraphQLHTTPSubgraphwith some defaults.Previously, it was not possible to configure the introspection query options.
By default it was ignoring deprecated input fields and not including descriptions.
Now it includes descriptions and deprecated input fields by default.
And you can still override the defaults by providing your own options.