Skip to content

Reject composite fields selected without a subfield selection - #647

Open
apoorva-01 wants to merge 1 commit into
supabase:masterfrom
apoorva-01:fix/reject-empty-selection-set
Open

Reject composite fields selected without a subfield selection#647
apoorva-01 wants to merge 1 commit into
supabase:masterfrom
apoorva-01:fix/reject-empty-selection-set

Conversation

@apoorva-01

Copy link
Copy Markdown

{ accountCollection } with no subfields returns an empty object instead of erroring, which the spec doesn't allow. Fixed in normalize_selection_set so all composite fields are covered, and @skip-ing everything still hits the old error path. Added a test; all 122 pass, reverting the fix fails it.

Closes #412

They were silently resolving to an empty object instead of erroring, which the GraphQL spec disallows.
@apoorva-01
apoorva-01 marked this pull request as ready for review August 19, 2026 21:18
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.

Invalid query is not rejected

1 participant