// src/testing-utils/apolloCacheConfig.ts
import {
  defaultDataIdFromObject
} from "@apollo/client";
import {
  getPossibleTypesAndDataIdFromNode,
  typePoliciesWithGlobalObjectIdStoreKeys
} from "@graphitation/apollo-react-relay-duct-tape";
import { schema } from "./schema.mjs";
var { possibleTypes, dataIdFromNode } = getPossibleTypesAndDataIdFromNode(schema);
var cacheConfig = {
  possibleTypes,
  dataIdFromObject(responseObject, keyFieldsContext) {
    return dataIdFromNode(responseObject, keyFieldsContext) || defaultDataIdFromObject(responseObject, keyFieldsContext);
  },
  typePolicies: typePoliciesWithGlobalObjectIdStoreKeys
};
export {
  cacheConfig
};
