Open yuemeTM opened 5 years ago
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 } } }
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 } } }