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

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 } } }

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

No branches or pull requests

1 participant