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 5ea2ff1 commit b3a5127Copy full SHA for b3a5127
src/execution/__tests__/variables.js
@@ -175,6 +175,22 @@ describe('Execute: Handles inputs', () => {
175
}
176
});
177
178
+
179
+ it('properly runs parseLiteral on complex scalar types', async () => {
180
+ const doc = `
181
+ {
182
+ fieldWithObjectInput(input: {a: "foo", d: "SerializedValue"})
183
+ }
184
+ `;
185
+ const ast = parse(doc);
186
187
+ return expect(await execute(schema, ast)).to.deep.equal({
188
+ data: {
189
+ fieldWithObjectInput: '{"a":"foo","d":"DeserializedValue"}',
190
191
+ });
192
193
194
195
196
describe('using variables', () => {
0 commit comments