@apollo/client
Version:
A fully-featured caching GraphQL client.
13 lines (12 loc) • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFragmentDefinitions = getFragmentDefinitions;
/**
* @internal
*
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
function getFragmentDefinitions(doc) {
return doc.definitions.filter((definition) => definition.kind === "FragmentDefinition");
}
//# sourceMappingURL=getFragmentDefinitions.cjs.map