UNPKG

756 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.JSONField = void 0;
4// eslint-disable-next-line @typescript-eslint/no-var-requires
5var GraphQLJSONObject = require('graphql-type-json').GraphQLJSONObject;
6var utils_1 = require("../utils");
7var getCombinedDecorator_1 = require("./getCombinedDecorator");
8function 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}
18exports.JSONField = JSONField;
19//# sourceMappingURL=JSONField.js.map
\No newline at end of file