MongoDB Query .find() hanya mengembalikan output pertama?
hi, i want to get all nested object that match condition in mongodb find query, my query just look like this: find({ transactions: {$elemMatch: {date: { $gte: someisodate, $lte: someisodate) } } } }, { _id: 0, "transactions.$": 1 });. i get what i want, but just one object, i want to get all object that matched query. how to do that? that query doesnt return multiple result, this only return first matched result
atau respon:
Jawaban
Belum ada Jawaban, jadi yang pertama
Login untuk gabung berdiskusiPertanyaan Lainnya
Top Kontributor
- @ahanafi
813 Kontribusi 551 Poin
- @Nandar
647 Kontribusi 204 Poin
- @dianarifr
642 Kontribusi 316 Poin
- @Saputroandhi
509 Kontribusi 162 Poin
- @dodipsitorus
412 Kontribusi 145 Poin