import { InMemoryCache } from "@apollo/client" ; import "moment/locale/es" ; export const cache = new InMemoryCache ( { typePolicies : { Contact : { fields : { prettyName : { read ( _ , { readField } ) { return readField ( "id" ) || readField ( "name" ) ; } , } , } , } , Earn : { fields : { completed : { read : ( value ) => value ?? false , } , } , } , } , } ) ;