1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.JSONField = void 0;
|
4 |
|
5 | var GraphQLJSONObject = require('graphql-type-json').GraphQLJSONObject;
|
6 | var utils_1 = require("../utils");
|
7 | var getCombinedDecorator_1 = require("./getCombinedDecorator");
|
8 | function JSONField(options) {
|
9 | if (options === void 0) { options = {}; }
|
10 | var factories = getCombinedDecorator_1.getCombinedDecorator({
|
11 | fieldType: 'json',
|
12 | warthogColumnMeta: options,
|
13 | gqlFieldType: GraphQLJSONObject,
|
14 | dbType: 'jsonb'
|
15 | });
|
16 | return utils_1.composeMethodDecorators.apply(void 0, factories);
|
17 | }
|
18 | exports.JSONField = JSONField;
|
19 |
|
\ | No newline at end of file |