Hi,
I'm trying to write a query returning data before a date :
mycollection
.find(Json.obj("start" -> Json.obj("$gte" -> Json.obj("$date" -> startDate))))
.cursor[MyModel]
.collect[List]().map { list =>
Ok(Json.toJson(list))
}
syntax seems correct but no model is returned.
I'm using Playframework and this format : jodaDate("yyyyMMddHHmm") to map the both requests of adding and searching.
Any ideas ?
Thanks in advance !