-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Is there clear documentation on how to implement subscriptions with prisma-binding? I’m using prisma 1.34 and prisma-binding 2.3.15.
At the moment, I have a subscription that looks like this:
type Subscription {
table: Table
}and a resolver that looks like this:
Subscription: {
table: {
subscribe: async (parent, args, ctx, info) => {
return ctx.db.subscription.table({}, info);
},
resolve: payload => {
return payload
}
}
}and I get this error:
{
"errors": [
{
"message": "Unexpected error value: [{ message: \"Anonymous Subscription must select only one top level field.\" }]",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"table"
]
}
]
}I can’t find any documentation that clearly tackles this. :(
cesarve77
Metadata
Metadata
Assignees
Labels
No labels