Skip to content

Glossary: GraphQL APIs

keyFields

Also written: typePolicies

Apollo Client settings that say which fields identify an object in the cache. `Product` has no `id`, so `keyFields: ["sku"]` makes the SKU its key.

Where the book teaches it

Related terms

Normalized cacheApollo Client