We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34f6b13 commit 8888a52Copy full SHA for 8888a52
src/Store/MongoDB/Store.php
@@ -74,7 +74,7 @@ public function addDocuments(array $documents): void
74
$operation = [
75
['_id' => $this->toBinary($document->id)], // we use binary for the id, because of storage efficiency
76
array_filter([
77
- 'metadata' => $document->metadata,
+ 'metadata' => $document->metadata->getArrayCopy(),
78
$this->vectorFieldName => $document->vector->getData(),
79
'text' => $document->text,
80
]),
0 commit comments