Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to customise max_results per connection in relay #3734

Open
patrick91 opened this issue Dec 20, 2024 · 0 comments
Open

Allow to customise max_results per connection in relay #3734

patrick91 opened this issue Dec 20, 2024 · 0 comments

Comments

@patrick91
Copy link
Member

I don't think we allow this currently, but it would be nice to allow to return a bigger number of items for a specific connection:

@strawberry.type
class Query:
    node: relay.Node = relay.node()

    @relay.connection(relay.ListConnection[Fruit], max_results=10_000)
    def fruits(self) -> Iterable[Fruit]:
        return all_fruits.values()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant