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

Support for GraphQL variables #10

Closed
nedpals opened this issue May 12, 2019 · 2 comments
Closed

Support for GraphQL variables #10

nedpals opened this issue May 12, 2019 · 2 comments
Labels

Comments

@nedpals
Copy link

nedpals commented May 12, 2019

Hi! Just a question. I have observed in your README as well as the source code and I'm still curious if there is any support for query variables in GraphQL. Great tool anyway, thanks!

@victorvoid
Copy link
Owner

Great question, it's a next feature to be implemented. I don't know how this is going work, but it's important to have a way to pass value in queries.

My idea:

const variables = {
  active: false
};

const value = dinoql(data, { variables })`
  users(id: $active)
`

//get only users active = `false`

When dinoQL has support for variables, I'll let you know here. Thanks @nedpals

@victorvoid
Copy link
Owner

@nedpals implemented! 🤘⚡️ #13

documentation: https://github.com/victorvoid/dinoql#variables

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

No branches or pull requests

2 participants