Person.where('things.tv' => 'Samsung').first
Det är här Mongoid och MongoDB verkligen lyser. Mongoids Criteria-metoder (Person.where , Person.any_of , Person.excludes , etc.) ger dig mycket mer flexibilitet än hittare i ActiveRecord-stil (som passerar en :conditions hash till Person.find , Person.first , etc.)
Mongoids sida har en del bra dokumentation om hur man använder Criteria :
https://mongoid.org/en/mongoid/docs/querying.html