(cls, db, **kwargs)
return None
Returns the first object exists for this query or None.
        WARNING: if there are more than 1 results in cls that satisfy the conditions in kwargs,
        only 1 random result will be returned
Returns the first object exists for this query or None.
        WARNING: if there are more than 1 results in cls that satisfy the conditions in kwargs,
        only 1 random result will be returned
Returns the first object exists for this query or None . WARNING : if there are more than 1 results in cls that satisfy the conditions in kwargs only 1 random result will be returned
async def get_object_or_none(cls, db, **kwargs):
        """
        Returns the first object exists for this query or None.
        WARNING: if there are more than 1 results in cls that satisfy the conditions in kwargs,
        only 1 random result will be returned
        """
        async for obj in cls.filter_by(db, limit=1, **kwargs):
            return obj
        return None
async def get_object_or_none ( cls , db , * * kwargs ) : async for obj in cls . filter_by ( db , limit = 1 , * * kwargs ) : return obj return None