Skip to content

Incoming data partially not normalized when matching a fuzzy possibleType and selected on a fragment when nullable field is null #11522

Open
@alessbell

Description

Issue Description

Bug was initially repoted on #10639, see linked PR with failing test case for full reproduction.

So far it seems to make this bug pop up you need to:

  • configure fuzzy possibleTypes
  • have a subtype request a nullable field via a fragment
  • that field returns null
  • some of the incoming data is no longer properly normalized

Interestingly, it fails to normalize whichever subtype appears second in the array in this case.

Link to Reproduction

#11521

Reproduction Steps

No response

@apollo/client version

3.8.10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions