graphql icon indicating copy to clipboard operation
graphql copied to clipboard

wrong result, unexpected errors: [Must provide an operation.]

Open jiharal opened this issue 7 years ago • 5 comments

jiharal avatar Feb 27 '18 08:02 jiharal

using graphiql?

nicolaiskogheim avatar Feb 27 '18 08:02 nicolaiskogheim

no, i'm using apollo angular client

jiharal avatar Feb 27 '18 09:02 jiharal

Sorry, can't help you.

nicolaiskogheim avatar Feb 28 '18 15:02 nicolaiskogheim

no problem, brother, but I has been read this article. https://medium.com/@maumribeiro/my-first-graphql-server-in-go-responding-to-apollo-bd1c11426572. and the problem has been solved. thanks 👍

jiharal avatar Feb 28 '18 15:02 jiharal

just to add to @jiharal comment, the regular graphql-go example shows to fetch the query from get parameter while Apollo sends it in the body in a post request, so the example shows how to read the bytes from the body and unmarshal them to a map of strings

kfirufk avatar Aug 30 '20 22:08 kfirufk