Skip to content

Commit 8888a52

Browse files
authored
fix: Metadata converting to array (#60)
1 parent 34f6b13 commit 8888a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Store/MongoDB/Store.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function addDocuments(array $documents): void
7474
$operation = [
7575
['_id' => $this->toBinary($document->id)], // we use binary for the id, because of storage efficiency
7676
array_filter([
77-
'metadata' => $document->metadata,
77+
'metadata' => $document->metadata->getArrayCopy(),
7878
$this->vectorFieldName => $document->vector->getData(),
7979
'text' => $document->text,
8080
]),

0 commit comments

Comments
 (0)