We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c1ea5 commit d90537dCopy full SHA for d90537d
1 file changed
pyArango/collection.py
@@ -327,12 +327,14 @@ def createDocument(self, initDict = None):
327
328
def createDocument_(self, initDict = None):
329
"""create and returns a completely empty document or one populated with initDict"""
330
+ res = dict(self.defaultDocument)
331
if initDict is None:
332
initV = {}
333
else:
334
initV = initDict
335
+ res.update(initV)
336
- return self.documentClass(self, initV)
337
+ return self.documentClass(self, res)
338
339
def _writeBatch(self):
340
if not self._bulkCache:
0 commit comments