3 ms·
Perhaps https://developer.github.com/v4/guides/forming-calls/#communicating-with-graphql https://developer.github.com/v4/guides/forming-calls/#commun... is rele
by shurcooL 9y ago
Perhaps https://developer.github.com/v4/guides/forming-calls/#communicating-with-graphql https://developer.github.com/v4/guides/forming-calls/#commun... is relevant:
> In REST, HTTP verbs determine the operation performed. In GraphQL, you'll provide a JSON-encoded body whether you're performing a query or a mutation, so the HTTP verb is POST. The exception is an introspection query, which is a simple GET to the endpoint.
- j_m_b 9y agoThanks. I'm not sure that this conforms to GraphQL best practices. http://graphql.org/learn/serving-over-http/ http://graphql.org/learn/serving-over-http/ It seems GET methods should be supported for more than just introspection queries.