Database

[{id:"x",samples:[{"timestamp":123},{"timestamp":234},{"timestamp":345}]}]

Query

db.collection.aggregate([{"$match":{"id":"x"}},{"$project":{"matchedIndex":{"$indexOfArray":[{$map:{input:"$samples.timestamp",in:{$gte:["$$this",235]}}},true]}}}])

Result