Skip to content

Commit 5824473

Browse files
authored
fix: do not use deprecated method (#227)
1 parent 58a5038 commit 5824473

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"require-dev": {
3232
"codewithkyrian/chromadb-php": "^0.2.1 || ^0.3",
33-
"mongodb/mongodb": "^1.20",
33+
"mongodb/mongodb": "^1.21",
3434
"php-cs-fixer/shim": "^3.70",
3535
"phpstan/phpstan": "^1.12",
3636
"phpstan/phpstan-webmozart-assert": "^1.2",
@@ -47,7 +47,7 @@
4747
"symfony/var-dumper": "^6.4 || ^7.1"
4848
},
4949
"conflict": {
50-
"mongodb/mongodb": "<1.20"
50+
"mongodb/mongodb": "<1.21"
5151
},
5252
"suggest": {
5353
"codewithkyrian/chromadb-php": "For using the ChromaDB as retrieval vector store.",

src/Bridge/MongoDB/Store.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function initialize(array $options = []): void
174174

175175
private function getCollection(): Collection
176176
{
177-
return $this->client->selectCollection($this->databaseName, $this->collectionName);
177+
return $this->client->getCollection($this->databaseName, $this->collectionName);
178178
}
179179

180180
private function toBinary(Uuid $uuid): Binary

0 commit comments

Comments
 (0)