We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbde57 commit 2fd4ae5Copy full SHA for 2fd4ae5
filexdb/document.py
@@ -20,7 +20,9 @@ def __init__(self, value: Mapping) -> None:
20
self._doc = value
21
self.id = value["_id_"]
22
else:
23
- self._doc = (_id_obj | value)
+ self._doc = _id_obj
24
+ for k, v in value.items():
25
+ self._doc[k] = v
26
self.id = self._doc["_id_"]
27
28
super().__init__(self._doc)
0 commit comments