-
Notifications
You must be signed in to change notification settings - Fork 268
Closed
Labels
Description
Hi,
My issue looks a lot like #265.
When doing a sort $natural => -1
on a find, a Cannot use $-modifiers or empty keys in 'opts'
RuntimeException is raised.
My environment is:
PHP: 7.0.12
Library: 1.0.3
Mongodb: 3.2
Extension: mongodb-1.2.0alpha3
$collection->find([], [ 'sort' => [ '$natural' => -1 ]]);
Maybe I'm doing something wrong, or is it a bug?