Answer the question
In order to leave comments, you need to log in
How to find a document by multiple mongoose array values?
Hello! Help not a crutch method to find a document of this kind. I am attaching my crutch method for understanding =) Event.find({tags: 'angular', tags: 'dom'}, func(err,docs){...}) So I have two array elements that I want to find a document. Advise the appropriate option))
Event.create({name: 'Курсы', id: 2, tags: ['webmanufacture', 'dom', 'JS', 'angular'], geo: {x: 10, y:10}}, function(){
console.log('created event!');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question