PrateekOriginal post
Android Developer
I have created collection in database, let's assume the collection name is "category", this category will contain id, name and List. Now when I'm querying it from client side, it is giving me all the posts lies in the specific category.
For example,
If category1 contains 8 posts, it returns all 8, instead I want paging capability like I can control the limits of number of posts.
val listDocument = database.listDocuments(
databaseId = DATABASE_ID,
collectionId = CATEGORY_COLLECTION
)
I don't found in the documentation related to this. Can anyone please suggest any approach?
Thank you
Summary
Developers want to implement paging in a one-to-many relationship query for a category collection, where each category contains a list of posts. They are currently retrieving all posts for a specific category but want to control the limit of the number of posts returned. The solution involves modifying the query to include pagination parameters like `limit` and `offset` to restrict the number of posts retrieved per request.