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
18 lines
780 B
Plaintext
18 lines
780 B
Plaintext
// This named export is intended for users of CommonJS. Users of ES modules
|
|
import { GraphQLScalarType } from 'graphql';
|
|
import { identity, parseLiteral } from './utils.js';
|
|
const specifiedByURL = 'http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf';
|
|
export const GraphQLJSONConfig = /*#__PURE__*/ {
|
|
name: 'JSON',
|
|
description: 'The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).',
|
|
serialize: identity,
|
|
parseValue: identity,
|
|
parseLiteral,
|
|
specifiedByURL,
|
|
specifiedByUrl: specifiedByURL,
|
|
extensions: {
|
|
codegenScalarType: 'any',
|
|
},
|
|
};
|
|
export const GraphQLJSON = /*#__PURE__*/ new GraphQLScalarType(GraphQLJSONConfig);
|