The maximum of returned results for a relay connection defaults to 100 and can be changed by a schema wide setting:
strawberry/strawberry/schema/config.py
Line 14 in b7f2881
Example:
MAX_RELAY_RESULTS = 777
schema_config = StrawberryConfig(relay_max_results=MAX_RELAY_RESULTS)
schema = Schema(
query=Query,
mutation=Mutation,
extensions=[
DjangoOptimizerExtension,
],
config=schema_config,
)
The maximum results returned can be overwritten on a per field level via a field setting.
Example:
@strawberry.type
MAX_RELAY_ITEM_RESULTS = 777
class Query:
my_items: ListConnectionWithTotalCount[MyItemType] = strawberry_django.connection(
relay_max_results=MAX_RELAY_ITEM_RESULTS
)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too