strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
MIT License
391 stars 115 forks source link

Expose pagination module #470

Closed fireteam99 closed 4 months ago

fireteam99 commented 5 months ago

Feature Request Type

Description

Hello, would it be possible to add pagination to the list of exported modules to strawberry_django/__init__.py? Attempting to access the submodule sometimes throws an error. If so, I'd be happy to submit a pull request!

Code:

import strawberry_django
strawberry_django.pagination.apply # This reports an warning

from strawberry_django.pagination import apply
apply # This is fine

Warning:

"pagination" is not a known member of module "strawberry_django"

Upvote & Fund

Fund with Polar

bellini666 commented 4 months ago

Hrm, considering that filters and ordering are exposed, I think it is fair that pagination should be as well! :)

Do you want to try to open a PR for this?

fireteam99 commented 4 months ago

Sure, I'd be happy to take a stab at it this week!