@classmethod
    @serializable
    def find_one(cls, filter=None, *args, **kwargs):
        return cls.collection.find_one(filter, *args, **kwargs)
Returns one document dict if one passes the filter.
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.find_one