We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f00da0 commit b217c94Copy full SHA for b217c94
1 file changed
backend/api/schema.py
@@ -19,7 +19,7 @@ class Query(graphene.ObjectType):
19
all_posts = graphene.List(PostType)
20
post = graphene.Field(PostType, post_id=graphene.Int())
21
all_authors = graphene.List(AuthorType)
22
- author = graphene.Field(AuthorType, author_id_id=graphene.Int())
+ author = graphene.Field(AuthorType, author_id=graphene.Int())
23
24
def resolve_all_posts(self, info, **kwargs):
25
return Post.objects.all()
@@ -153,4 +153,4 @@ class Mutation(graphene.ObjectType):
153
delete_author = DeleteAuthor.Field()
154
155
156
-schema = graphene.Schema(query=Query, mutation=Mutation)
+schema = graphene.Schema(query=Query, mutation=Mutation)
0 commit comments