From 51a629122977abd0a06c393c68a6b4bbbff86bb0 Mon Sep 17 00:00:00 2001 From: Take Weiland Date: Tue, 17 Dec 2024 16:34:37 +0100 Subject: [PATCH] Add comment about why we add implicit pagination --- strawberry_django/pagination.py | 1 + 1 file changed, 1 insertion(+) diff --git a/strawberry_django/pagination.py b/strawberry_django/pagination.py index 31be9dd2..631034a2 100644 --- a/strawberry_django/pagination.py +++ b/strawberry_django/pagination.py @@ -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 ):