is-subscriptions.js 422 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isASubscriptionOperation = void 0;
  4. var graphql_1 = require("graphql");
  5. exports.isASubscriptionOperation = function (document, operationName) {
  6. var operationAST = graphql_1.getOperationAST(document, operationName);
  7. return !!operationAST && operationAST.operation === 'subscription';
  8. };
  9. //# sourceMappingURL=is-subscriptions.js.map