Transformation support with Rust Query Planner Handler#1708
Conversation
Summary of ChangesHello @ardatan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant refactoring of the GraphQL transformation logic, aiming to make it more generic and less coupled to specific stitching implementations. It overhauls the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
5fbdc6a to
9f81d18
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a major refactoring to generalize schema transformations, enabling their use with the Rust-based query planner in the router runtime. This is a significant step towards a more unified and flexible architecture. The changes are extensive, touching delegation logic, request creation, and several transformation implementations. While the overall direction is excellent, I've identified a few critical issues related to this decoupling that could lead to runtime errors or incorrect behavior. My review focuses on these potential problems in argument processing, handling of conditional directives, and a potential crash in the MoveRootField transform.
🚀 Snapshot Release (
|
| Package | Version | Info |
|---|---|---|
@graphql-tools/batch-delegate |
10.0.6-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/delegate |
12.0.0-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/federation |
4.2.4-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/fusion-runtime |
1.6.0-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway |
2.1.20-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/nestjs |
2.0.25-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/plugin-aws-sigv4 |
2.0.18-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/plugin-opentelemetry |
1.2.2-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-mesh/plugin-prometheus |
2.1.6-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/router-runtime |
1.1.0-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway-runtime |
2.3.6-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/stitch |
10.1.4-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/stitching-directives |
4.0.6-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-hive/gateway-testing |
2.0.6-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
@graphql-tools/wrap |
11.1.0-alpha-e23b844282b3244e6da4dc25307e1bdb5e3aeb88 |
npm ↗︎ unpkg ↗︎ |
🚀 Snapshot Release (Node Docker Image)The latest changes of this PR are available as image on GitHub Container Registry (based on the declared |
🚀 Snapshot Release (Bun Docker Image)The latest changes of this PR are available as image on GitHub Container Registry (based on the declared |
9e7f51e to
818c840
Compare
36b3cfa to
c7ed703
Compare
Transforms are supported until graphql-hive/gateway#1708
…raphql-hive#1708 createRequest no longer preserves defaultValue on variable definitions used in @include/@Skip directives, causing subgraph validation to reject queries like `$flag: Boolean = false` in `Boolean!` positions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.