@classmethod
    @serializable
    def insert_one(cls, document):
        return cls.collection.insert_one(document).inserted_id
Inserts a document into the Collection and returns its _id
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.insert_one