-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Querying
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
document : {metas : [
{'name' : 'foo' , 'value' : 42},
{'name' : 'bar', 'value' : 55 }]}
I'd like do be able to do .find(
{'metas.name' : 'foo' },
{'metas.$' : 1}), so it only returns the matching sub-array in the field.