Skip to content

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
yaacovCR pushed a commit to yaacovCR/graphql-js that referenced this pull request May 27, 2025
@yaacovCR yaacovCR mentioned this pull request May 27, 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