strawberry-graphql / strawberry-sqlalchemy

A SQLAlchemy Integration for strawberry-graphql
MIT License
93 stars 27 forks source link

Make Pagination Optional #167

Closed fruitymedley closed 1 week ago

fruitymedley commented 5 months ago

Currently, pagination is configured for a model automatically if any relationship contains uselist=True, as seen in mapper.py:389. This seems undesirable as a strict rule, particularly in cases with a one-to-few relationship (think tires on cars). Obviously, there are cases where pagination is desirable (such as navigating a e-commerce catalog), so pagination should be toggleable.

Feature Request Type

Description

Upvote & Fund

Fund with Polar

Ckk3 commented 1 week ago

This feature was added in #168