Skip to content

Add support for compare operators in MongoDB conditions #36

@klimov-paul

Description

@klimov-paul

Add support for compare operators like '<', '>', '<=', '>=' in MongoDB conditions.
This will make yii\mongodb\Query intrface match regular yii\db\Query:

$query = new Query();
$rows = $query->from('customer')
    ->where(['<=', 'status', 3])
    ->all($connection);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions