I'm having a little trouble with a query in Java on a MongoDB.
I have the follow structure in the database:
{
"_id" : ObjectId("5059c214707747cbc5819f6f"),
"id" : "7",
"title" : "test4",
"keywords" : "keyword 1, keyword 2",
"partner" : {
"id" : "1",
"name" : "partner",
"keywords" : "partner keyword 1, partner keyword 2"
},
"status" : {
"id" : "0",
"name" : "Expired"
},
"modified" : "2012-09-27"
}
I want the query the database for the field 'Status.name', example SELECT * FROM table WHERE status.name = 'Expired'
How would I do such a query in Java for MongoDB?
Thanks for any help or suggestions!