Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: how to get the string? #579

Open
thojanssens opened this issue Mar 5, 2022 · 1 comment
Open

Question: how to get the string? #579

thojanssens opened this issue Mar 5, 2022 · 1 comment

Comments

@thojanssens
Copy link

thojanssens commented Mar 5, 2022

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?

@mktcode
Copy link

mktcode commented Feb 22, 2023

#206 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants