doums
10/24/2018, 9:10 AMtype PostSubscriptionPayload {
mutation: MutationType!
node: Post
updatedFields: [String!]
previousValues: PostPreviousValues
}
from one subscription like
type Subscription {
posts: PostSubscriptionPayload
}
?
I tried this:
posts: {
subscribe: async (parent, args, ctx) => {
return ctx.prisma.$<http://subscribe.post|subscribe.post>()
},
resolve: payload => {
console.log(payload)
return payload
}
}
But in the resolve function I receive only the mutation Type, all others fields are null, whatever is the mutation type.nilan
10/24/2018, 9:22 AMdoums
10/24/2018, 9:23 AMsubscription {
posts {
mutation
node {
title
}
updatedFields
previousValues {
title
}
}
}
doums
10/24/2018, 3:56 PMnilan
10/24/2018, 3:56 PMdoums
10/24/2018, 3:57 PM