Property | Type | Description | |
---|---|---|---|
$limit | |||
$orderBy | |||
$predicate | |||
$repo |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
andWhere ( string | Closure $field, string $operator = null, string $value = null ) : |
Adds a boolean AND predicate for this query, | |
execute ( ) : |
Runs the query. | |
limit ( integer $count, integer $offset ) : |
Set a limit on the number of documents returned. An offset from 0 can also be specified. | |
orWhere ( string | Closure $field, string $operator = null, string $value = null ) : |
Adds a boolean OR predicate for this query, | |
orderBy ( mixed $fields ) : |
Sets the fields to order the results by. They should be in the the format 'fieldname ASC|DESC'. e.g 'dateAdded DESC'. | |
where ( $field, $operator = null, $value = null ) : |
public __construct ( |
||
$repository | The repo this query will run against. |
public andWhere ( string | Closure $field, string $operator = null, string $value = null ) : |
||
$field | string | Closure | The name of the field to match or an anonymous function that will define sub predicates. |
$operator | string | An operator from the allowed list. |
$value | string | The value to compare against. |
return | The same instance of this class. |
public execute ( ) : |
||
return | The documents returned from this query. |
public orWhere ( string | Closure $field, string $operator = null, string $value = null ) : |
||
$field | string | Closure | The name of the field to match or an anonymous function that will define sub predicates. |
$operator | string | An operator from the allowed list. |
$value | string | The value to compare against. |
return | The same instance of this class. |
public where ( $field, $operator = null, $value = null ) : |
||
return | The same instance of this class. |