We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi guys,
In file README, currently we have the demo code to publish events:
README
pubsub.publish(SOMETHING_CHANGED_TOPIC, { somethingChanged: { id: "123" }});
I tried to use the template above but in clients, I've got nothing. All fields are set to null. But if I modify it a little bit like this:
null
pubsub.publish(SOMETHING_CHANGED_TOPIC, { id: "123" });
It works as expected. So is there any thing wrong with the documentation?
The text was updated successfully, but these errors were encountered:
Well, in src/pubsub.ts:
public publish(triggerName: string, payload: any): boolean { this.ee.emit(triggerName, payload); return true; }
Definitely I think there's an error in the documentation regarding this issue.
Sorry, something went wrong.
If i dont have { somethignChanged: .... i get null. So i have the opposite?
@rnenjoy I don't know. What're your related packages? Mine are:
"apollo-client": "^1.9.0-1", "graphql-tag": "^2.4.2", "react-apollo": "^1.4.7", "subscriptions-transport-ws": "^0.8.1"
It's been a while since this bug was reported. If you're still encountering this, please reply... and a working reproducer would also be nice :)
No branches or pull requests
Hi guys,
In file
README
, currently we have the demo code to publish events:I tried to use the template above but in clients, I've got nothing. All fields are set to
null
. But if I modify it a little bit like this:It works as expected. So is there any thing wrong with the documentation?
The text was updated successfully, but these errors were encountered: