UNPKG

@apollo/client

Version:

A fully-featured caching GraphQL client.

11 lines 343 B
import { visit } from "graphql"; export function removeMaskedFragmentSpreads(document) { return visit(document, { FragmentSpread(node) { if (!node.directives?.some(({ name }) => name.value === "unmask")) { return null; } }, }); } //# sourceMappingURL=removeFragmentSpreads.js.map