Skip to content

fix(coerce-input-value): input object coercion rejects arrays #4367

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

Merged
merged 3 commits into from
Apr 5, 2025

Conversation

cristunaranjo
Copy link
Contributor

This PR closes #4365

Rejects arrays when input type is an object. Works for top level arrays and deep ones.

@cristunaranjo cristunaranjo requested a review from a team as a code owner April 4, 2025 17:29
@cristunaranjo cristunaranjo changed the title fix(executor): input object coercion rejects arrays fix(coerce-input-value): input object coercion rejects arrays Apr 4, 2025
Copy link
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great find! Thank you so much

@JoviDeCroock JoviDeCroock merged commit 5adeb7f into graphql:16.x.x Apr 5, 2025
17 checks passed
@cristunaranjo cristunaranjo deleted the fix/4365 branch April 5, 2025 09:02
@JoviDeCroock JoviDeCroock added the PR: bug fix 🐞 requires increase of "patch" version number label Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: bug fix 🐞 requires increase of "patch" version number
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input object coercion should reject arrays directly
2 participants