Create new object. Returns the saved object instance.
(self, **kwargs)
| 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.""" |