UNPKG

684 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.BooleanField = void 0;
4var graphql_1 = require("graphql");
5var utils_1 = require("../utils");
6var getCombinedDecorator_1 = require("./getCombinedDecorator");
7function BooleanField(options) {
8 if (options === void 0) { options = {}; }
9 var factories = getCombinedDecorator_1.getCombinedDecorator({
10 fieldType: 'boolean',
11 warthogColumnMeta: options,
12 gqlFieldType: graphql_1.GraphQLBoolean,
13 dbType: 'boolean'
14 });
15 return utils_1.composeMethodDecorators.apply(void 0, factories);
16}
17exports.BooleanField = BooleanField;
18//# sourceMappingURL=BooleanField.js.map
\No newline at end of file