Skip to content

Commit

Permalink
Fix missing return annotation in get_customer docs (#3642)
Browse files Browse the repository at this point in the history
Using the documentation as-is produces this error:
```
MissingReturnAnnotationError: Return annotation missing for field "get_customer", did you forget to add it?
```
  • Loading branch information
Skeen authored Sep 23, 2024
1 parent ab16971 commit 18f0f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/types/schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Query:
@strawberry.field
def get_customer(
self, id: strawberry.ID
): # -> Customer note we're returning the interface here
) -> Customer: # note we're returning the interface here
if id == "mark":
return Individual(name="Mark", date_of_birth=date(1984, 5, 14))

Expand Down

0 comments on commit 18f0f5d

Please sign in to comment.