UNPKG

1.89 kBJavaScriptView Raw
1"use strict";
2var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3 if (k2 === undefined) k2 = k;
4 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5}) : (function(o, m, k, k2) {
6 if (k2 === undefined) k2 = k;
7 o[k2] = m[k];
8}));
9var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10 Object.defineProperty(o, "default", { enumerable: true, value: v });
11}) : function(o, v) {
12 o["default"] = v;
13});
14var __importStar = (this && this.__importStar) || function (mod) {
15 if (mod && mod.__esModule) return mod;
16 var result = {};
17 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18 __setModuleDefault(result, mod);
19 return result;
20};
21Object.defineProperty(exports, "__esModule", { value: true });
22// all system operators
23// helpers
24var core_1 = require("../core");
25var accumulatorOperators = __importStar(require("../operators/accumulator"));
26var expressionOperators = __importStar(require("../operators/expression"));
27var pipelineOperators = __importStar(require("../operators/pipeline"));
28var projectionOperators = __importStar(require("../operators/projection"));
29var queryOperators = __importStar(require("../operators/query"));
30/**
31 * Enable all supported MongoDB operators
32 */
33function enableSystemOperators() {
34 (0, core_1.useOperators)(core_1.OperatorType.ACCUMULATOR, accumulatorOperators);
35 (0, core_1.useOperators)(core_1.OperatorType.EXPRESSION, expressionOperators);
36 (0, core_1.useOperators)(core_1.OperatorType.PIPELINE, pipelineOperators);
37 (0, core_1.useOperators)(core_1.OperatorType.PROJECTION, projectionOperators);
38 (0, core_1.useOperators)(core_1.OperatorType.QUERY, queryOperators);
39}
40enableSystemOperators();