We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1865536 commit 3777e6dCopy full SHA for 3777e6d
src/httptoolkit-server.ts
@@ -125,9 +125,9 @@ const buildResolvers = (
125
126
Json: new GraphQLScalarType({
127
name: 'Json',
128
- description: 'A JSON entity, serialized as a simple JSON string',
129
- serialize: (value: any) => JSON.stringify(value),
130
- parseValue: (input: string): any => JSON.parse(input),
+ description: 'A JSON entity, serialized as a raw object',
+ serialize: (value: any) => value,
+ parseValue: (input: string): any => input,
131
parseLiteral: (): any => { throw new Error('JSON literals are not supported') }
132
}),
133
0 commit comments