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

GraphQL's execute - two variables needed #253

Closed
gilgardosh opened this issue Apr 18, 2020 · 2 comments
Closed

GraphQL's execute - two variables needed #253

gilgardosh opened this issue Apr 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@gilgardosh
Copy link
Collaborator

I'm using execute in typescript, following this example.
While replacing the requires in imports, an error raised mentioning two variables are expected.

Adding an empty object after the mesh schema solved it.

@ardatan
Copy link
Owner

ardatan commented Apr 18, 2020

I guess you mean two parameters of that method by two variables. You're right. the second parameter variables should be optional. Until it gets fixed, you can pass {} an empty object.

@ardatan ardatan added the bug Something isn't working label Apr 18, 2020
@ardatan ardatan reopened this Apr 19, 2020
@ardatan
Copy link
Owner

ardatan commented Apr 20, 2020

Available in 0.1.5!

@ardatan ardatan closed this as completed Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants