query first number of items after an id in mongoose?

Viewed 167

i am thinking of implementing a cursor based pagination and I think of encoding and decoding an id. is it possible to query like this in mongoose?

MyModel.find({ _id: 4 }).limit(10)

so basically after that id, you query for the next 10 items?

1 Answers
Related