From 1370e572cce736a3c7278c87a68a972803360ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 10 Jul 2023 17:49:42 +0200 Subject: [PATCH] review --- composer.json | 4 ++-- src/Query/Builder.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c8850d6..e02cc27 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ ], "license": "MIT", "require": { + "ext-mongodb": "*", "illuminate/support": "^10.0", "illuminate/container": "^10.0", "illuminate/database": "^10.0", "illuminate/events": "^10.0", - "mongodb/mongodb": "^1.15", - "ext-mongodb": "*" + "mongodb/mongodb": "^1.15" }, "require-dev": { "phpunit/phpunit": "^9.5.10", diff --git a/src/Query/Builder.php b/src/Query/Builder.php index 4382cb6..dd2c50a 100644 --- a/src/Query/Builder.php +++ b/src/Query/Builder.php @@ -217,7 +217,9 @@ public function cursor($columns = []) } /** - * Return the Mongo Query to be run in the form of a 1 element array like ['method' => [arguments]]. + * Return the MongoDB Query to be run in the form of an element array like ['method' => [arguments]]. + * + * Example: ['find' => [['name' => 'John Doe'], ['projection' => ['birthday' => 1]]]] * * @param $columns * @return array