@cran/gql.jm
Version:
Cran/GraphQL Join Monster Utilities
41 lines (40 loc) • 3.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.withJm = exports.withSqlJunctionInclude = exports.withSqlJunctionBatch = exports.withSqlJunction = exports.withSqlResolverRaw = exports.withSqlResolver = exports.withSqlBatch = exports.withSqlJoin = exports.withSqlComposite = exports.withSqlColumn = exports.withSqlTable = void 0;
require("./hook");
const withSqlBatch_1 = require("./withSqlBatch");
Object.defineProperty(exports, "withSqlBatch", { enumerable: true, get: function () { return withSqlBatch_1.withSqlBatch; } });
const withSqlColumn_1 = require("./withSqlColumn");
Object.defineProperty(exports, "withSqlColumn", { enumerable: true, get: function () { return withSqlColumn_1.withSqlColumn; } });
const withSqlComposite_1 = require("./withSqlComposite");
Object.defineProperty(exports, "withSqlComposite", { enumerable: true, get: function () { return withSqlComposite_1.withSqlComposite; } });
const withSqlJoin_1 = require("./withSqlJoin");
Object.defineProperty(exports, "withSqlJoin", { enumerable: true, get: function () { return withSqlJoin_1.withSqlJoin; } });
const withSqlJunction_1 = require("./withSqlJunction");
Object.defineProperty(exports, "withSqlJunction", { enumerable: true, get: function () { return withSqlJunction_1.withSqlJunction; } });
const withSqlJunctionBatch_1 = require("./withSqlJunctionBatch");
Object.defineProperty(exports, "withSqlJunctionBatch", { enumerable: true, get: function () { return withSqlJunctionBatch_1.withSqlJunctionBatch; } });
const withSqlJunctionInclude_1 = require("./withSqlJunctionInclude");
Object.defineProperty(exports, "withSqlJunctionInclude", { enumerable: true, get: function () { return withSqlJunctionInclude_1.withSqlJunctionInclude; } });
const withSqlResolver_1 = require("./withSqlResolver");
Object.defineProperty(exports, "withSqlResolver", { enumerable: true, get: function () { return withSqlResolver_1.withSqlResolver; } });
const withSqlResolverRaw_1 = require("./withSqlResolverRaw");
Object.defineProperty(exports, "withSqlResolverRaw", { enumerable: true, get: function () { return withSqlResolverRaw_1.withSqlResolverRaw; } });
const withSqlTable_1 = require("./withSqlTable");
Object.defineProperty(exports, "withSqlTable", { enumerable: true, get: function () { return withSqlTable_1.withSqlTable; } });
function withJm(options = {}) {
return [
// ORDER MATTERS
(0, withSqlComposite_1.withSqlComposite)(options.sqlComposite),
(0, withSqlColumn_1.withSqlColumn)(options.sqlColumn),
(0, withSqlJoin_1.withSqlJoin)(options.sqlJoin),
(0, withSqlBatch_1.withSqlBatch)(options.sqlBatch),
(0, withSqlJunction_1.withSqlJunction)(options.sqlJunction),
(0, withSqlJunctionBatch_1.withSqlJunctionBatch)(options.sqlJunctionBatch),
(0, withSqlJunctionInclude_1.withSqlJunctionInclude)(options.sqlJunctionInclude),
(0, withSqlTable_1.withSqlTable)(options.sqlTable),
(0, withSqlResolver_1.withSqlResolver)(options.sqlResolver, options.resolverOptions),
(0, withSqlResolverRaw_1.withSqlResolverRaw)(options.sqlResolverRaw),
];
}
exports.withJm = withJm;