graphql-query-complexity
Version:
Validation rule for GraphQL query complexity analysis
14 lines (13 loc) • 530 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createComplexityRule = void 0;
const QueryComplexity_js_1 = __importDefault(require("./QueryComplexity.js"));
function createComplexityRule(options) {
return (context) => {
return new QueryComplexity_js_1.default(context, options);
};
}
exports.createComplexityRule = createComplexityRule;