Person.where('things.tv' => 'Samsung').first
यह वह जगह है जहाँ Mongoid और MongoDB वास्तव में चमकते हैं। मोंगोइड के मानदंड के तरीके (Person.where , Person.any_of , Person.excludes , आदि) आपको ActiveRecord- शैली के खोजकर्ताओं की तुलना में अधिक लचीलापन देगा (:conditions पास करना Person.find . के लिए हैश , Person.first , आदि)
Mongoid की साइट में Criteria . का उपयोग करने के बारे में कुछ बेहतरीन दस्तावेज़ हैं :
https://mongoid.org/en/mongoid/docs/querying.html