diegohaz / querymen

Querystring parser middleware for MongoDB, Express and Nodejs (MEN)
Other
129 stars 34 forks source link

Query not working (maybe I'm wrong) #67

Closed parisgianluca closed 6 years ago

parisgianluca commented 6 years ago

I have a model, how do I query a field? Let's suppose I have the following model:

Timesheet : {
   month: 5,
   year: 2018
}

It is correct if i make a query like

url/timesheets?month=5&year=2018 ? Because it is not working for me, maybe I'm doing something wrong