MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / create

Method create

mongoengine/queryset/base.py:290–292  ·  view source on GitHub ↗

Create new object. Returns the saved object instance.

(self, **kwargs)

Source from the content-addressed store, hash-verified

288 )
289
290 def create(self, **kwargs):
291 """Create new object. Returns the saved object instance."""
292 return self._document(**kwargs).save(force_insert=True)
293
294 def first(self):
295 """Retrieve the first object matching the query."""

Calls 1

saveMethod · 0.45