@classmethod
    @serializable
    def replace_one(cls, filter, replacement, upsert=False):
        return cls.collection.replace_one(
            filter, replacement, upsert
        ).raw_result
Replaces a document that passes the filter.
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.replace_one