Page Iterator Question

Sometimes, we want use iter with batch operation, it will be faster, and more beautiful than query by page. Is there a way to achieve it?

Welcome to the MongoDB Community Forum @111721 !

Which MongoDB Driver are you using to access MongoDB? They should all have examples of using iterators for queries.

For example, using the MongoDB Shell: Iterate a cursor in mongosh.

You may also be interested in Paging with the Bucket Pattern - Part 1 and Paging with the Bucket Pattern - Part 2.

If that isn’t the sort of information you are looking for, please provide a more detailed example.

Regards,
Stennie