async-graphql: Incorrect variable substitution
This mutation fails—but works with other graphql libraries (Rust and NodeJs):
mutation($data: Base64Encoded!) {
createCalls(
calls: [
{
identifier: "test_call_identifier"
timestamp: "2020-05-31T01:53:15+00:00"
asset: { data: $data, requiresSpeechRecognition: true }
}
]
) {
id
identifier
timestamp
}
}
variables:
{ "data": "asdf" }
But if I supply the complete variables/what the mutation expects, it works:
mutation($calls: [CreateCallInput!]!) {
createCalls(calls: $calls) {
id
}
}
{
"calls": [
{
"identifier": "test_call_identifier",
"timestamp": "2020-05-31T01:53:15+00:00",
"asset": {
"data": "asdf",
"requiresSpeechRecognition": true
}
}
]
}
Am I missing something?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (10 by maintainers)
Commits related to this issue
- Fix incorrect variable substitution. #126 — committed to async-graphql/async-graphql by sunli829 4 years ago
- Remove check_reserved_name This allows types to end in Connection or be named PageInfo. Addresses #126 — committed to mwilliammyers/async-graphql by mwilliammyers 4 years ago
Tell me if you have any questions. 😁
Please upgrade to
1.14.8
.