We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 134d6c6 + d98d2a6 commit e9a40f2Copy full SHA for e9a40f2
docs/authorization.rst
@@ -61,7 +61,7 @@ define a resolve method for that field and return the desired queryset.
61
from .models import Post
62
63
class Query(ObjectType):
64
- all_posts = DjangoFilterConnectionField(CategoryNode)
+ all_posts = DjangoFilterConnectionField(PostNode)
65
66
def resolve_all_posts(self, args, info):
67
return Post.objects.filter(published=True)
@@ -79,7 +79,7 @@ with the context argument.
79
80
81
82
- my_posts = DjangoFilterConnectionField(CategoryNode)
+ my_posts = DjangoFilterConnectionField(PostNode)
83
84
def resolve_my_posts(self, info):
85
# context will reference to the Django request
0 commit comments