How do I query nested object by property inside an array?
问题 I have a collection of several thousand (potentially 30-40k) documents, with a structure (greatly simplified) like this: { propA:'123', obj: [ {prop1:'a'}, {prop1:'b'}, {prop1:'c'} ], propB:456 } How can I query to find all documents where obj.prop1==='b' ? I can't seem to figure out how to check a property of an object inside an array property. This is using version 1.5.1. Thanks! Update I've done some digging into MongoDB style queries (which I believe Loki emulates?). The following works