According to THIS answer ,which explains how to get random items, I can get list of random items from my Mongo database. My question is: How to get only the the first item randomly and the rest of items are in sequence to the first random item.
eg. if having a list of numbers [ 1,2,3,4,5,6,7,8,9,10 ]
and the random selection of the first item has become to be 4, then the rest of the items should be 5,6,7, .. etc.
The hard point of this question is to do this in one query not 2 queries: (1- get one item randomly, then, 2- find all items in sequence with bigger id)
How to do this in one query?