Skip to content

fix(graphql): update existing object on nested input id - #8786

Merged
soyuka merged 1 commit into
api-platform:4.4from
soyuka:fix/graphql-nested-input-id-8785
Nov 3, 2026
Merged

soyuka merged 1 commit into
api-platform:4.4from
soyuka:fix/graphql-nested-input-id-8785

Conversation

@soyuka

@soyuka soyuka commented Nov 2, 2026

Copy link
Copy Markdown
Member
Q A
Branch? 4.4
Tickets Closes #8785
License MIT
Doc PR ∅

Since #7713 the GraphQL ItemDenormalizer extends AbstractItemNormalizer directly and no longer gets the id → OBJECT_TO_POPULATE logic of ItemNormalizerTrait, so a nested input with an id created a new object instead of updating the existing one (4.3 behaviour). The denormalizer uses the trait again, like the REST/JSON-LD/JSON:API ones, with an optional logger appended to the constructor.

The GraphQL ItemDenormalizer lost ItemNormalizerTrait in the
normalizer/denormalizer split (api-platform#7713), so a nested input carrying an id
created a new object instead of populating the existing one.

Fixes api-platform#8785
@soyuka
soyuka merged commit edc952c into api-platform:4.4 Nov 3, 2026
117 checks passed
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.

1 participant