Skip to content

Commit

Permalink
Add comment about why we add implicit pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
diesieben07 committed Dec 17, 2024
1 parent 8783f5b commit 51a6291
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions strawberry_django/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def get_queryset(

# Add implicit pagination if this field is not a list
# that way when first() / get() is called on the QuerySet it does not cause extra queries
# and we don't prefetch more than necessary
if not pagination and not (
self.is_list or self.is_paginated or self.is_connection
):
Expand Down

0 comments on commit 51a6291

Please # to comment.