Skip to content

fix(oe): traverse full GraphQL paths in schema sourceInfo resolver - #584

Closed
ginaxu1 wants to merge 1 commit into
mainfrom
fix/509-schema-resolver-path-traversal
Closed

ginaxu1 wants to merge 1 commit into
mainfrom
fix/509-schema-resolver-path-traversal

Conversation

@ginaxu1

@ginaxu1 ginaxu1 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Unwrap NonNull/List at each intermediate field when resolving @sourceInfo from a schema path.
  • Walk every path component to the leaf instead of the old 3-part special case / first-two-parts fallback.
  • Add unit tests for [VehicleClass!]!, deeper object nesting, and missing fields.

Test plan

  • go test ./internal/oe/pkg/federator/ -count=1

Closes #509

Unwrap NonNull/List at each intermediate field and walk every path
component to the leaf, so types like [VehicleClass!]! and deeper nested
objects resolve correctly.

Closes #509

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: dede741e-6edf-48dd-a8cc-c1489284b45e


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ginaxu1 ginaxu1 self-assigned this Sep 29, 2026
@mushrafmim

Copy link
Copy Markdown
Member

Closing as superseded, thanks @ginaxu1. internal/oe/pkg/federator/schema_resolver.go no longer exists. @sourceInfo is now resolved from the full consumer path by the gqlparser-based planner in internal/oe/federator/plan.go (#664, #670, #671, released in v0.5.0).

@mushrafmim mushrafmim closed this Oct 20, 2026
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.

OE: schema_resolver.go doesn't traverse full GraphQL field paths (lists, nested objects)

2 participants