O
O
odd-look2015-06-17 17:05:01
JavaScript
odd-look, 2015-06-17 17:05:01

How to find an array by ObjectId in mongoose?

I noticed that personal ObjectIds are created for arrays in models. How to search for them?
model.find({$in: objId}) returns an empty array.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
odd-look, 2015-06-17
@odd-look

Found
mongoosejs.com/docs/subdocs.html

D
Deodatuss, 2015-06-17
@Deodatuss

I still don’t understand, do you have an array of arrays in the model?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question