With a little help from the other answers here, I found something that worked for me, and I think this is what the original poster had in mind;
Model.where(:"subdoc.some_attribute".exists => true)
This will return all documents where "some_attribute" exists in the subdocument. Pay attention to the syntax of the character, to what I was missing.
source share