Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Node of Subscription is always null #447

Open
yuemeTM opened this issue Jan 3, 2019 · 0 comments
Open

Node of Subscription is always null #447

yuemeTM opened this issue Jan 3, 2019 · 0 comments

Comments

@yuemeTM
Copy link

yuemeTM commented Jan 3, 2019

I set up a subscription like this:

import { Context } from '../utils' export const Subscription = { deviceData: { subscribe: async (parent, args, ctx: Context, info) => { return ctx.db.subscription.deviceData({ where: args.where }) } } }

Node is always null in CREATED mutation. I can not get my data in that result.

{ "data": { "deviceData": { "mutation": "CREATED", "node": null, "updatedFields": null, "previousValues": null } } }

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

No branches or pull requests

1 participant