1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.BooleanField = void 0;
|
4 | var graphql_1 = require("graphql");
|
5 | var utils_1 = require("../utils");
|
6 | var getCombinedDecorator_1 = require("./getCombinedDecorator");
|
7 | function 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 | }
|
17 | exports.BooleanField = BooleanField;
|
18 |
|
\ | No newline at end of file |