"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultPrintFn = void 0;
const graphql_1 = require("graphql");
const printCache = new WeakMap();
function defaultPrintFn(document) {
    let printed = printCache.get(document);
    if (!printed) {
        printed = (0, graphql_1.print)(document);
        printCache.set(document, printed);
    }
    return printed;
}
exports.defaultPrintFn = defaultPrintFn;
