UNPKG

@vulcan-sql/build

Version:

VulcanSQL package for building projects

19 lines 772 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransformPaginationMode = void 0; const tslib_1 = require("tslib"); const middleware_1 = require("./middleware"); // pagination.mode: offset -> OFFSET class TransformPaginationMode extends middleware_1.SchemaParserMiddleware { handle(schemas, next) { var _a; return tslib_1.__awaiter(this, void 0, void 0, function* () { if ((_a = schemas.pagination) === null || _a === void 0 ? void 0 : _a.mode) schemas.pagination.mode = schemas.pagination.mode.toUpperCase(); return next(); }); } } exports.TransformPaginationMode = TransformPaginationMode; //# sourceMappingURL=transformPaginationMode.js.map