From d98d2a6a73bfef9d27c8f25a05c7e22f3c223804 Mon Sep 17 00:00:00 2001 From: eyal0803 Date: Fri, 23 Feb 2018 20:59:19 +0200 Subject: [PATCH] Update authorization.rst Someone probably forgot to change `CategoryNode`, from the previous tutorial, to `PostNode`. --- docs/authorization.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/authorization.rst b/docs/authorization.rst index 707dbf6..0232cc0 100644 --- a/docs/authorization.rst +++ b/docs/authorization.rst @@ -61,7 +61,7 @@ define a resolve method for that field and return the desired queryset. from .models import Post class Query(ObjectType): - all_posts = DjangoFilterConnectionField(CategoryNode) + all_posts = DjangoFilterConnectionField(PostNode) def resolve_all_posts(self, args, info): return Post.objects.filter(published=True) @@ -79,7 +79,7 @@ with the context argument. from .models import Post class Query(ObjectType): - my_posts = DjangoFilterConnectionField(CategoryNode) + my_posts = DjangoFilterConnectionField(PostNode) def resolve_my_posts(self, info): # context will reference to the Django request