O
O
olezhenka2017-06-14 16:25:51
JavaScript
olezhenka, 2017-06-14 16:25:51

How to set conditions in mongoose?

I need to search the database collection for the values ​​of variables with conditions.
example: main.findOne({rate:5}... here it will find everyone with a rating of 5, but how to make a condition from 5 to 10?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2017-06-14
@olezhenka

https://docs.mongodb.com/manual/reference/operator...

E
emp1re, 2017-06-14
@emp1re

just like in normal monge.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question