Having multiple documents an structure similar to this:
{
'key1':value,
'key2':value2,
'galaxy':{
'planets':['earth','mars','welcomebackpluto']
'sun': 'something'
}
}
I would like to query all the documents that have mars within the planets array in the galaxy object.
The indexes I've created haven't worked and I'm not able to query them, any idea how to?