Gomah / nuxt-graphql-request

Easy Minimal GraphQL client integration with Nuxt.js.
https://nuxt-graphql-request.vercel.app
MIT License
195 stars 16 forks source link

Var Interpolation #27

Closed MentalGear closed 1 year ago

MentalGear commented 3 years ago

Any chance we can have ${ interpolation} instead of the more complex request(mutation, variables); ?

Example:

      const gqlRequest = gql`
          mutation {
            getItem( animalData: {
                id: ${itemID},
            }
            ){
              stats
            }
          }
        `

Would be rad

Gomah commented 1 year ago

That's unfortunately not by design from graphql-request