let's say I have an structure like that in mongodb:
{
'source1': {
'name':'john',
'phone':'5555555'
}
'source2': {
'name':'john',
'city':'new york'
}
'source3': {
'name':'john',
'phone':'5555555'
'city':'new york'
}
}
how can I select all sources that have the 'phone' fields (source1 and source3)? something like *.phone {$exists:true}