http://www.mongodb.org/display/DOCS/Dot+Notation+(Reaching+into+Objects)
In the docs, all the samples use dot notation to find a particular item in a sub-collection of an object. How do I go about just getting the entire sub-collection? It seems simple but darned if I can find it in the docs.
All I really want to do is verify that sub-collections of an object are present via the mongo console.
I guess you are looking for $exists operator:
Above code will return all all documents that’s have
embeddedArraysub collection.