From fa7880a5468c8d5e66c6e52ef4d7a27ccfbdf72f Mon Sep 17 00:00:00 2001 From: Kamil Mysliwiec Date: Wed, 4 Sep 2019 15:19:26 +0200 Subject: [PATCH] Update subscriptions.md --- content/graphql/subscriptions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/graphql/subscriptions.md b/content/graphql/subscriptions.md index f78e440525..f90122c4e4 100644 --- a/content/graphql/subscriptions.md +++ b/content/graphql/subscriptions.md @@ -86,6 +86,7 @@ Likewise with filters. ```typescript @Subscription('commentAdded', { filter(this: AuthorResolver, payload, variables) { + // "this" refers to an instance of "AuthorResolver" return payload.commentAdded.repositoryName === variables.repoFullName; } })