-
Notifications
You must be signed in to change notification settings - Fork 57
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
subscribe function doesn't pass correct arguments when hardcoded to the query #183
Comments
I was about to report this. I have this exact same issue. |
I cannot tell this for certain, but it is likely mutations have the same problem. At least I remember we have JIT handling disabled for both subscriptions and mutations, and the cause was likely the same. Cannot tell this for certain - it's been a while since we encountered it. :( |
Is there any update regarding this issue? We have runned graphql-jit with subscriptions (and mutations) disabled for the past few years, but it would be great to have them supported. We might be able to contribute to a fix, but need a few pointers from the original authors to get started. |
Sorry for late replies! It would be great to get a contribution to a fix. The initial message has an example test case for subscriptions, and it would be a good start to provide a failing test for the subscription and/or mutation case in a draft PR, for example. |
when passing arguments via variables the subscription resolver receives args correctly. If the variables aren't used and hardcoded to the query the subscription resolver gets an empty object.
This modification to
src/__tests__/subscription.test.ts
will demonstrateChanged the query from
to
and added
expect(args).toEqual({"priority": 0})
The text was updated successfully, but these errors were encountered: