Skip to content

Commit

Permalink
docs(subscriptions): fix arguments of the subscribe option (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1te1337 committed Oct 21, 2020
1 parent 9566b08 commit fcb4834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/subscriptions.md
Expand Up @@ -62,7 +62,7 @@ All we need to do is to use the the `subscribe` option which should be a functio
class SampleResolver {
// ...
@Subscription({
subscribe: ({ args, context }) => {
subscribe: (root, args, context, info) => {
return context.prisma.$subscribe.users({ mutation_in: [args.mutationType] });
},
})
Expand Down

0 comments on commit fcb4834

Please sign in to comment.