Skip to content

Commit b8bf51b

Browse files
authored
docs: fix typo in product example (#8)
1 parent 00befde commit b8bf51b

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
@@ -94,7 +94,7 @@ class Product(ObjectType):
9494
"""
9595
Here we resolve the reference of the product entity referenced by its `upc` field.
9696
"""
97-
return User(upc=self.upc, name=f"product {self.upc}")
97+
return Product(upc=self.upc, name=f"product {self.upc}")
9898

9999
class Query(ObjectType):
100100
topProducts = List(Product, first=Argument(Int, default_value=5))

0 commit comments

Comments
 (0)