1 year ago
#376507
povici
mongodb querying next N documents
In Mongodb, is it possible to query the next N documents?
i.e
collection.find({ 'temperature': 1.0 }).sort("datetime", 1).next({ [ 'temperature': 1.1, 'temperature': 1.2 ] }, 2)
query would return results only after document where temperature 1.0 next one is 1.1 and after the next temperature is 1.2? (they follow the order)
mongodb
nosql
nosql-aggregation
0 Answers
Your Answer