testDB> db.getCollectionInfos({name:'TS_Stuff'}) [ { name: 'TS_Stuff', type: 'timeseries', options: { timeseries: { timeField: 't', metaField: 'd', granularity: 'seconds', bucketMaxSpanSeconds: 3600 } }, info: { readOnly: false } } ] testDB> db.TS_Stuff.count() 131553179 testDB> db.TS_Stuff.find({},{_id:0,t:1}).sort({t:-1}).limit(5) [ { t: ISODate('2024-07-24T14:32:18.000Z') }, { t: ISODate('2024-07-24T14:32:16.000Z') }, { t: ISODate('2024-07-24T14:32:16.000Z') }, { t: ISODate('2024-07-24T14:32:14.000Z') }, { t: ISODate('2024-07-24T14:32:14.000Z') } ] testDB> db.TS_Stuff.find({t:{$gte:ISODate('2024-07-24T14:32:16.000Z')}},{_id:0,t:1}) testDB> db.TS_Stuff.find({t:{$gt:ISODate('2024-07-24T14:32:16.000Z')}},{_id:0,t:1}) testDB> db.TS_Stuff.find({t:{$eq:ISODate('2024-07-24T14:32:16.000Z')}},{_id:0,t:1}) testDB> db.TS_Stuff.find({t:{$lt:ISODate('2024-07-24T14:32:16.000Z')}},{_id:0,t:1}) [ { t: ISODate('2017-10-24T21:16:15.000Z') }, { t: ISODate('2017-10-24T21:16:16.000Z') }, { t: ISODate('2017-10-24T21:16:56.000Z') }, { t: ISODate('2017-10-24T21:16:51.000Z') }, { t: ISODate('2017-10-24T21:16:51.000Z') }, { t: ISODate('2017-10-24T21:16:50.000Z') }, { t: ISODate('2017-10-24T21:16:17.000Z') }, { t: ISODate('2017-10-24T21:16:57.000Z') }, { t: ISODate('2017-10-24T21:16:57.000Z') }, { t: ISODate('2017-10-24T21:16:15.000Z') }, { t: ISODate('2017-10-24T21:16:14.000Z') }, { t: ISODate('2017-10-24T21:16:19.000Z') }, { t: ISODate('2017-10-24T21:16:20.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:32.000Z') }, { t: ISODate('2017-10-24T21:16:38.000Z') } ] Type "it" for more testDB> db.TS_Stuff.find({t:{$lte:ISODate('2024-07-24T14:32:16.000Z')}},{_id:0,t:1}) [ { t: ISODate('2017-10-24T21:16:15.000Z') }, { t: ISODate('2017-10-24T21:16:16.000Z') }, { t: ISODate('2017-10-24T21:16:56.000Z') }, { t: ISODate('2017-10-24T21:16:51.000Z') }, { t: ISODate('2017-10-24T21:16:51.000Z') }, { t: ISODate('2017-10-24T21:16:50.000Z') }, { t: ISODate('2017-10-24T21:16:17.000Z') }, { t: ISODate('2017-10-24T21:16:57.000Z') }, { t: ISODate('2017-10-24T21:16:57.000Z') }, { t: ISODate('2017-10-24T21:16:15.000Z') }, { t: ISODate('2017-10-24T21:16:14.000Z') }, { t: ISODate('2017-10-24T21:16:19.000Z') }, { t: ISODate('2017-10-24T21:16:20.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:26.000Z') }, { t: ISODate('2017-10-24T21:16:32.000Z') }, { t: ISODate('2017-10-24T21:16:38.000Z') } ] Type "it" for more