prisma-labs / graphql-prisma-typescript

🏡 GraphQL server reference implementation (Airbnb clone) in Typescript using Prisma & graphql-yoga
MIT License
749 stars 108 forks source link

Node of Subscription is always null #447

Open yuemeTM opened 5 years ago

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