Skip to content

Commit d90537d

Browse files
committed
default with set
1 parent b6c1ea5 commit d90537d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pyArango/collection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,14 @@ def createDocument(self, initDict = None):
327327

328328
def createDocument_(self, initDict = None):
329329
"""create and returns a completely empty document or one populated with initDict"""
330+
res = dict(self.defaultDocument)
330331
if initDict is None:
331332
initV = {}
332333
else:
333334
initV = initDict
335+
res.update(initV)
334336

335-
return self.documentClass(self, initV)
337+
return self.documentClass(self, res)
336338

337339
def _writeBatch(self):
338340
if not self._bulkCache:

0 commit comments

Comments
 (0)