📄️ Where
The Where method is used to filter documents in a collection based on a specified condition. It can be chained along with other query methods to further refine the results.
📄️ Equals
The Equals method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is equal to the specified value.
📄️ Not Equals
The NotEquals method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is not equal to the specified value.
📄️ Less Than
The LessThan method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is less than the specified value.
📄️ Greater Than
The GreaterThan method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is greater than the specified value.
📄️ Less Than or Equals
The LessThanOrEquals method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is less than or equal to the specified value.
📄️ Greater Than or Equals
The GreaterThanOrEquals method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is greater than or equal to the specified value.
📄️ Between
The Between method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is within a specified range.
📄️ Mod
The Mod method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is divisible by the specified divisor and has the specified remainder.
📄️ Regex
The Regex method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field matches the specified regular expression.
📄️ Exists
The Exists method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field exists.
📄️ In
The In method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is equal to one of the specified values.
📄️ Not In
The NotIn method is chained to the Where method and is used to filter the results of a query to only include documents where the specified field is not equal to any of the specified values.
📄️ Has
The Has method is chained to the Where method and is used to filter the results of a query to only include documents where the specified array field has an element equal to the specified value.
📄️ Element Matches
The ElementMatches method is chained to the Where method and is used to filter the results of a query to only include documents where the specified array field has an element that matches the specified query.
📄️ Size
The Size method is chained to the Where method and is used to filter the results of a query to only include documents where the specified array field has a specified number of elements.
📄️ Or
The Or method is used to extend the query with an OR condition.
📄️ Or Where
The OrWhere method is a shorter way of chaining the Where method to the Or method. It is used to extend the query with an OR condition.
🗃️ Type Checks
15 items
🗃️ Update Operations
13 items
📄️ Select
The Select method is used to specify which fields to include in the results.
📄️ Skip
The Skip method allows you to skip a specified number of documents in a collection.
📄️ Limit
The Limit method allows you to limit the number of documents returned in a collection.
📄️ Paginate
Pagination is a common requirement for many applications. Elemental provides a simple way to paginate query results using the Paginate method on the query object.
📄️ Schedule
The Schedule method is used to schedule the execution of a query based on a given specifier. This is built on top of Robofig Cron module and supports all the cron specifiers that Robofig supports.
📄️ Populate
Populate is a method that allows you to retrieve related documents from other collections based on references defined in your schema. The retrieved documents are automatically embedded into the results of your query.
📄️ Or Fail
The OrFail method is chained at the end of a query to panic with an error if the query returns no results.