Hello I have the following db:
My question is how do I "SELECT name FROM posts Where thread=Sloan"
Because I'm trying into RockMongo shell : "db.users.find({"posts.thread":'Sloan'})" but it's return all the collection data
***** Using json-generator.com ********************
[
'{{repeat(5, 7)}}',
{
id: '{{index}}',
group: '{{surname}}',
name: '{{firstName}} {{surname}}',
posts: [
'{{repeat(25)}}',
{
thread:'{{surname}}',
sb:[
'{{repeat(100)}}',
{
id: '{{index}}',
name: '{{firstName}} {{surname}}'
}
]
}
],
users:[
'{{repeat(25)}}',
{
name:'{{firstName}}'
}]
}
]