graphql
graphql copied to clipboard
wrong result, unexpected errors: [Must provide an operation.]
using graphiql?
no, i'm using apollo angular client
Sorry, can't help you.
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 👍
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