Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.GraphQLJSONObject = exports.GraphQLJSONObjectConfig = void 0;
|
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
const graphql_1 = require("graphql");
|
|
const utils_js_1 = require("./utils.js");
|
|
const specifiedByURL = 'http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf';
|
|
exports.GraphQLJSONObjectConfig = {
|
|
name: 'JSONObject',
|
|
description: 'The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).',
|
|
serialize: utils_js_1.ensureObject,
|
|
parseValue: utils_js_1.ensureObject,
|
|
parseLiteral: utils_js_1.parseObject,
|
|
specifiedByURL,
|
|
specifiedByUrl: specifiedByURL,
|
|
extensions: {
|
|
codegenScalarType: 'Record<string, any>',
|
|
jsonSchema: {
|
|
type: 'object',
|
|
additionalProperties: true,
|
|
},
|
|
},
|
|
};
|
|
exports.GraphQLJSONObject = new graphql_1.GraphQLScalarType(exports.GraphQLJSONObjectConfig);
|