We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to build a query with nested operations, like this:
query ($id: Int) { thought (id: $id) { id, name, thought, details { image, description } } }
So, I composed this JS code to make it:
const query = gql.query({ operation: 'thought', variables: { id: 1 }, fields: [ 'id', 'name', 'thought', { operation: 'details', fields: [ 'image', 'description', ], }, ] })
But it produces an error:
Uncaught TypeError: t.map is not a function
But if I add an empty variables: {} property, it starts working, here is the example:
variables: {}
const query = gql.query({ operation: 'thought', variables: { id: 1 }, fields: [ 'id', 'name', 'thought', { operation: 'details', variables: {}, fields: [ 'image', 'description', ], }, ] })
So, is it a bug, or intended behavior? If intended, could you please describe the reasons?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I need to build a query with nested operations, like this:
So, I composed this JS code to make it:
But it produces an error:
But if I add an empty
variables: {}
property, it starts working, here is the example:So, is it a bug, or intended behavior? If intended, could you please describe the reasons?
The text was updated successfully, but these errors were encountered: