Paginate inner model field
See original GitHub issueGreat library, thanks!
How would you go about using it on an endpoint which doesn’t directly return a sequence, but a model in which a field is the sequence to paginate, e.g.:
class ResponseType(BaseModel):
other_data: int
data_to_paginate: Sequence[str]
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Nested Pagination. Lately, I faced a problem while working…
Find a way to paginate books inside the author instance. The first solution is easy, and won't actually take five minutes to implement, ......
Read more >Django how to sort and paginate nested ORM and non-ORM ...
all works fine but there is a need to order data by some fields of the Property model, order by total price and...
Read more >Paginate related fields - Google Groups
However, we have a need to paginate relationship fields that return multiple items ... ModelSerializer): class Meta: model = Track fields = ('order', ......
Read more >Example of doing pagination (especially on nested resources ...
I'm working with a graphQL API that has a top level resource that has several fields in it that are paginated themselves -...
Read more >Best practices for consuming nested pagination query results?
Hi all,. I'm fairly new to GraphQL in general, and I'm looking for some guidance on how to paginate nested query results.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @davidbrochart, I am closing this issue, please reopen it if you have more questions.
Hi @davidbrochart,
Now it should be easier to implement this feature. Example: