desktop
desktop copied to clipboard
[Bug]: Cannot send multiple operations
What happened?
Sending multiple named queries returns an error that the operation name is not set when it is indeed fixed. Also, with one query, the operation name is not set and the server returns undefined for the operation name.
Steps to reproduce?
Write two queries and send them.
query query1 {
someQuery {
fieldA
}
}
mutation mutation1 {
anotherQuery {
fieldB
}
}
### What did you expect to happen?
Both queries to execute
### Platform
macOS
### HTTPie Desktop version
2023.3.6
### Relevant log output
```Shell
{
"errors": [
{
"message": "Something went wrong",
"extensions": {
"code": "OPERATION_RESOLUTION_FAILURE",
"stacktrace": [
"GraphQLError: Must provide operation name if query contains multiple operations.",
]
}
]
}
Code of Conduct
- [X] I agree to follow this project's Code of Conduct