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.36k stars 2.66k forks source link

ChatGPT can't help me, need a human! TypePolicy being ignored... why? #12094

Open bandinopla opened 1 week ago

bandinopla commented 1 week ago

Issue Description

Why the type policy in this example is being ignored? the Person.name is not shown in uppercase... See link...

Link to Reproduction

https://codesandbox.io/p/sandbox/priceless-rgb-w9g2ny

Reproduction Steps

No response

@apollo/client version

3.11.4

dylanwulf commented 4 days ago

type policies are a configuration option for InMemoryCache, not ApolloClient