Reputation: 1024
I have a mongodb schema which looks like this. How do you search such a document to find
the record that matches Name == Brad
{
"_id" : ObjectId("57f580efe2ab6485147d0f71"),
"0" : {
"Name" : "Brad",
"Age" : 42
},
"1" : {
"Name" : "Paul",
"Age" : 32
}
}
The schema is handed over to me by the library I use from a swift
program to save a JSON
string. The library is Perfect MongoDB.
Upvotes: 2
Views: 581