-
Notifications
You must be signed in to change notification settings - Fork 44
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
Subscription issue #229
Comments
Had the same issue when upgrading prisma-binding to 2.1.4. I suspect a bug there. When I downgrade to prisma-binding@2.1.3 the problem goes away. |
@joefru I got same problem even with |
Related: howtographql/howtographql#758 |
Same for me, downgrading to |
The error is in this line: https://github.com/graphql-binding/graphql-binding/blob/master/src/Delegate.ts#L88 I changed from
to
and it solved the error, but this raises the question. Should the value pass to Delegate contain a field named data? Because if the answer is yes, then the error is on the part of the code where we are not wrapping that object in ".data" |
Thanks for your suggestions. Finally i decided to move to ApolloServer, i couldn't stand a broken library for each upgrade, so hurt :( |
The issue still exists, leave it open until is fixed in the next version |
@maury91 I reopened the issue for who's interested. There're some serious issues here and there. |
@schickling @timsuchanek this issue is blocking me from updating. Would love to see it fixed. |
Same here, in fact it cost me about 8h yesterday while I was debugging using fragments with subscriptions (which then resulted in another bug raised). I agree with other devs that the continuous introductions of major bugs like non working subscriptions is something to worry about. Can we assist you in any way setting up better regression testing? In addition its a terrible experience for first time graphql'ers when they use the yoga boilerplates and right away it doesn't work. |
One note: I added a PR here: graphql-boilerplates/node-graphql-server#374 . |
@revskill10 maybe it would be better to make a pull request with a fix as suggested @maury91? Btw, I faced the same problem recently and spent about a week to solve it, downgrading prisma-binding to 2.3.1 solved problem for me. But note this - prisma/prisma#2920 (comment) |
@maury91 I can confirm that making the changes suggested fixes the issue. Can you submit a pull request? |
@ntziolis @SilencerWeb the main problem is that the issue is on another repository ( https://github.com/graphql-binding/graphql-binding ), and we don't know if consumers that are not prisma-binding are affected, by making that change we can potentially break another consumer, so is worth first investigating if that is the expected behaviour and is prisma-binding the one passing the wrong parameters to Delegate, or if it is the opposite and proceed with the fix. |
@maury91 I see, lmk if I can assist in any way. We need this current version of the bindings as its the first one to allow fragments in subscriptions (prisma/prisma#2026). Have been waiting for that fix for a long time as it will significantly clean up our code based and reduce errors of devs by not keeping fragment in subscription in sync. |
Same problem here. 2.1.3 my subs work but when moving to 2.1.4 they error out
|
Maury91 well found the issue of this problem: This worked well for me to |
This is fixed in |
downgrading to 2.1.3 solved the issue |
I'm following tutorial at howtographql.com, here's my subscription for
newLink
:My subscription query is:
But when i post a mutation to create new link
, i got error :
But if i go to database, schema, i got correct subscription:
This is killing me hardly. Any magic for subscription only work for database, but not on
app
?.My
schema.graphql
is:My
package.json
:The text was updated successfully, but these errors were encountered: