graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
557 stars 71 forks source link

Get variable value from user is not working for complex type #275

Closed PrasadJayakumar closed 2 years ago

PrasadJayakumar commented 3 years ago

Actual Behavior

User input dialog works for scalar type. If I pass complex values like {Id: "5621" targetVolume: "10"}, then I get error Expected type ComplexInput be an object.

mutation($Input: [ComplexInput]) { save(input: $Input) { id } }

Expected Behavior

Steps to Reproduce the Problem Or Description

Specifications

Logs Of TS Server || GraphQL Language Service

" at /app/node_modules/graphql/execution/values.js:114:15", " at coerceInputValueImpl (/app/node_modules/graphql/utilities/coerceInputValue.js:83:7)", " at coerceInputValue (/app/node_modules/graphql/utilities/coerceInputValue.js:37:10)", " at _loop (/app/node_modules/graphql/execution/values.js:107:69)", " at coerceVariableValues (/app/node_modules/graphql/execution/values.js:119:16)", " at getVariableValues (/app/node_modules/graphql/execution/values.js:48:19)", " at buildExecutionContext (/app/node_modules/graphql/execution/execute.js:184:61)", " at executeImpl (/app/node_modules/graphql/execution/execute.js:89:20)", " at Object.execute (/app/node_modules/graphql/execution/execute.js:64:35)",

acao commented 2 years ago

We no longer support query execution in this extension, but if we re-introduce it, we will provide a different UI