apollo ๊ณต์๋ฌธ์๋ฅผ ๋ฒ์ญํ ๊ธ ์
๋๋ค.
Initialization
import { InMemoryCache, ApolloClient } from '@apollo/client';
const client = new ApolloClient({
cache: new InMemoryCache(options)
});
Configuration options
- Specify custom primary key fields
- Customize the storage and retrieval of individual fields
- Customize the interpretation of field arguments
- Define supertype-subtype relationships for fragment matching
- Define patterns for pagination
- Manage client-side local state
Customizing cache IDs
- ํน๋ณํ ๊ฒฝ์ฐ๋ผ๋ฉด ID๋ฅผ customizing ํ ์ ์๋ค.
- ๋ ํ์ง ์์ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ์๋ต..
TypePolicy fields
- ์ค์ํ ๊ฑด ์๋ ๊ฒ ๊ฐ์์ ์๋ต!