apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.34k stars 2.66k forks source link

[Data masking] Ensure masking algorithm properly handles nulls #12034

Closed jerelmiller closed 1 month ago

jerelmiller commented 1 month ago

Fixes #12035

The data masking algorithm doesn't properly handle null when passed as a top-level value (which might happen if there were errors returned in the GraphQL response), as the value of an array item, or as the value of a key with a child selection set. This PR fixes all 3 of these situations.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: dc21c6336b7075d61122d46ff771a53a1b0a5810

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR