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] Add ability to globally enable data masking for queries #11891

Closed jerelmiller closed 3 months ago

jerelmiller commented 3 months ago

Closes https://github.com/apollographql/apollo-client/issues/11672

Adds an option to ApolloClient that enables data masking. This also adds the implementation to return masked queries from watchQuery (i.e. ObservableQuery) so that network data and cache updates will be masked.

This work does NOT include any ability to read fragments from the parent objects. This will be done in a followup PR.

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: a52703f0323185d1df2ecd64cabd5c1eaaefc9fc

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