Skip to content

Commit

Permalink
fix(docs): Add missing import to resolver snippet (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisjared authored Jan 21, 2024
1 parent 17c5010 commit 0f66fa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/resolvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ however still add those by hand and resolve them:
```{.python title=types.py}
import strawberry
from strawberry import auto
from strawberry.types import Info
import strawberry_django
from . import models
Expand Down Expand Up @@ -92,6 +93,7 @@ class Query:
self,
filters: FruitFilter | None = strawberry.UNSET,
order: FruitOrder | None = strawberry.UNSET,
info: Info
) -> list[Fruit]
qs = models.fruit.objects.all()
Expand Down

0 comments on commit 0f66fa2

Please sign in to comment.