Skip to content

Commit c8cd3e3

Browse files
authored
Update README.md
miss @strawberry.type decorator over Query class declaration this cause "missing _type_definition atribute" error and can confuse new users
1 parent 84f2cd0 commit c8cd3e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Employee:
6767
class Department:
6868
pass
6969

70-
70+
@strawberry.type
7171
class Query:
7272
@strawberry.field
7373
def departments(self):

0 commit comments

Comments
 (0)