graphql-tag
graphql-tag copied to clipboard
Question: how to get the string?
Say I have a query document like so:
const query = gql`
{
user(id: 5) {
...User_user
}
}
${userFragment}
`
How do I get now the string to add in the body request? I end up with an object, which allows me to do some introspection and manipulations, but how to get the actual body for the request?
https://github.com/apollographql/graphql-tag/issues/206#issuecomment-1173991680