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

Created on 27 Feb 2018  路  5Comments  路  Source: graphql-go/graphql

Most helpful comment

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 馃憤

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FrontMage picture FrontMage  路  5Comments

titanous picture titanous  路  3Comments

zbintliff picture zbintliff  路  3Comments

januszm picture januszm  路  6Comments

rustysys-dev picture rustysys-dev  路  6Comments