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

Declaring with template tag and running later #30

Open
nicmosc opened this issue Aug 11, 2018 · 1 comment
Open

Declaring with template tag and running later #30

nicmosc opened this issue Aug 11, 2018 · 1 comment
Milestone

Comments

@nicmosc
Copy link

nicmosc commented Aug 11, 2018

I love this package! We've been using graphql with React for a while now and we have a project where React isn't an option so to connect to our graphql server this is perfect. However we usually first declare our query with the template tag:

const Query = gql`
   query Stuff()...
`

And then run it by calling it.

It would be awesome if we could do the same here, is this something you plan to support? Maybe I misread the doc but from what I saw using this syntax will run the query straight away.

Thanks

@f
Copy link
Owner

f commented Oct 14, 2018

Looks like a nice to have feature.

@f f added this to the 0.6.0 milestone Oct 14, 2018
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