def insert(self):
from mongoframes.queries import to_refs<EOL>signal('<STR_LIT>').send(self.__class__, frames=[self])<EOL>document = to_refs(self._document)<EOL>self._id = self.get_collection().insert_one(document).inserted_id<EOL>signal('<STR_LIT>').send(self.__class__, frames=[self])<EOL>
Insert this document