index.js 445 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.dropUnusedDefinitions = void 0;
  4. const graphql_1 = require("graphql");
  5. function dropUnusedDefinitions(ast, operationName) {
  6. const separated = (0, graphql_1.separateOperations)(ast)[operationName];
  7. if (!separated) {
  8. return ast;
  9. }
  10. return separated;
  11. }
  12. exports.dropUnusedDefinitions = dropUnusedDefinitions;
  13. //# sourceMappingURL=index.js.map