Skip to content

Commit 18f0f5d

Browse files
authored
Fix missing return annotation in get_customer docs (#3642)
Using the documentation as-is produces this error: ``` MissingReturnAnnotationError: Return annotation missing for field "get_customer", did you forget to add it? ```
1 parent ab16971 commit 18f0f5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/schema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Query:
9191
@strawberry.field
9292
def get_customer(
9393
self, id: strawberry.ID
94-
): # -> Customer note we're returning the interface here
94+
) -> Customer: # note we're returning the interface here
9595
if id == "mark":
9696
return Individual(name="Mark", date_of_birth=date(1984, 5, 14))
9797

0 commit comments

Comments
 (0)