graphql-go-tools
graphql-go-tools copied to clipboard
Error in query building
I think something is wrong, why the lib remove the operation name from the query?
Original request:
query MyHeroes($heroNames: [String!]!){
heroes(names: $heroNames)
}
And the lib send this to graphql sub-graphs:
{"query":"query($heroNames: [String!]!){heroes(names: $heroNames)}","variables":{"heroNames":["Luke Skywalker","R2-D2"]}}
I get the error: Anonymous operations are not allowed so i can not use it :/
@jensneuse can help me?
Hi @luca147
We do not know anything about your use case and what exactly you are using from this library
If such an issue still exits please provide a complete reproducible example