Answer the question
In order to leave comments, you need to log in
Search in mongoDB
Hey! I got a little misunderstanding. Why is that?
Active is not found in indexes.
Answer the question
In order to leave comments, you need to log in
Possibly incorrect query construction
Try $or
db.shops.find( { $or: [ {name:/^m/i}, {name:1mactive:1} ] } )
Specify what you are looking for and what data is in the fields?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question