You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field policies can have keyArgs, but type policies have keyFields.
Field policies go in the fields subsection of the TypePolicy object:
newInMemoryCache({typePolicies: {Query: {// Type policy for the Query objectfields: {someField: {// Field policy for the Query.someField fieldkeyArgs: [...],},},},},})
More discussion in #8021 (comment) if you're curious why it doesn't make sense to configure keyArgs for an object type.
apollo-client/src/cache/inmemory/policies.ts
Line 108 in febbba9
According to the docs https://www.apollographql.com/docs/react/pagination/core-api/ a Query property should be available on the TypePolicy type but is not
Property 'Query' is incompatible with index signature.
The text was updated successfully, but these errors were encountered: