I am trying to build a multi-field query.
My collection is composed of a lot of documents like the following:
{
"_id" : ObjectId("5601711160b2abcf7ff24b46"),
"id_a" : "43d366a9-a39b-4d49-98ce-369739471b6b",
"id_thing" : -1,
"data" : {
"info1" : 36.0709427,
"date" : "2005-11-01T00:33:21.987+07:00",
"info2" : 24563.87148077
}
}
I did not find a way to query in scala
using casbah
, for documents that correspond to: id_thing -> -1
and data.info1 -> 36.0709427
.
Note: I don't know how to push an ISODate
to the database.