smart-cache
Usage
patch apollo-client in memory cache
patchApolloClient, InMemoryCache // you can maintain the type field map manually or use our codegen CLI to generate onecache.setTypeFieldMaptypeFieldMap // after the patch, you can access the powerful deleteCache method from your apollo-client instanceclient.deleteCachetypename, idGetterObj
generate type field map with CLI
npm i -g smart-cache smart-cache SCHEMA_PATH OUTPUT_PATH# example: smart-cache ./test/fixuture/schema.graphql ./test/fixture/typeFieldMap.ts
use the codegen module programatically
const parse = const constructTypeFieldMap =