graphql-go-tools icon indicating copy to clipboard operation
graphql-go-tools copied to clipboard

Error in query building

Open luca147 opened this issue 2 years ago • 1 comments

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 :/

luca147 avatar Aug 05 '23 21:08 luca147

@jensneuse can help me?

luca147 avatar Aug 05 '23 21:08 luca147

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

devsergiy avatar Apr 04 '24 10:04 devsergiy