I have a GraphQL API built with Apollo Engine on Node.JS, and this API includes a /graphiql
endpoint to the graphql playground where I can generate queries like the example below:
query {
canonical(ref: "") {
id
}
}
My question is: how can I generate a sharable URL which contains the query above.
(for example: htttp://gql-endpoint.com/graphiql?query=...
The motivation behind this is to generate URLs that, upon request, open the graphiql
interface and display the query side by side with the response.
Thank you for your help.