sapkra
04/17/2019, 3:28 AMmutation
and not just the node
. When I try it I'm just getting a type error.
Types of property 'subscribe' are incompatible.
Type '(parent: object, args: any, ctx: Context) => Promise<AsyncIterator<UserSubscriptionPayload>>' is not assignable to type '(root: object, args: any, ctx: Context, info: GraphQLResolveInfo) => AsyncIterator<any>'.
Property 'next' is missing in type 'Promise<AsyncIterator<UserSubscriptionPayload>>' but required in type 'AsyncIterator<any>'.