Query selectors
The following is a list of all supported methods that are supported on any Mongoid class. The following table states the attributes of the query selectors, their usage, and description:
|
|
This finds all the documents where the field (typically an array) matches all the values in the array. So, this means that In case Book.all("reviews.content" => ['good', 'excellent']) |
|
|
This finds all the documents in which the field exists. |
: |
|
This finds all the documents in which count is greater than ( |
|
|