Apps Platform: add support for GraphQL APIs
Log In
Jörg Zeipelt
I'm using GraphQL requests in some scenarios, but it's very inconvenient. For example quotation marks have to be escaped via backslash. There is no syntax highlighting. These issues make the request almost unreadable and uneditable. The longer the queries, the more problematic this becomes. But at least it works via the HTTP module.
So yes, would be very cool to get a specific module that has syntax highlighting and introspection for GraphQL like Insomnia for example has.
Honza Pobořil
Is there some workaround at least if I can develop own module?
Dashdoc Integrations
Honza Pobořil: I just sent GraphQL requests thanks to this documentation, using "HTTP Make a request" module : https://graphql.org/learn/serving-over-http/
What worked in our case is to set a custom Content-type header, as explained in the link above.
Cody Frisch
Honza Pobořil: there are advanced options in Make to support GraphQL with variables.