Reputation: 3105
Currently I use the following to search an individual document to see if a specific embedded document exists:
User.where(first_name:"Josh").first.attributes['address'].nil?
How do I search the entire User collection for documents that have the 'address' embedded document?
Thanks!
Upvotes: 0
Views: 57