api/schemas/schema_base.py
def exists(cls, doc: Document, ignore: list = [], hashed: list = [], collection: MongoCollection = None) -> bool:
        """Function for checking if a document exists."""
        c = cls.collection or collection
        q = cls.validate_query(doc, ignore, hashed)

        return bool(c.find_one(q))
Function for checking if a document exists.
Function for checking if a document exists.
Function for checking if a document exists .
def exists(cls, doc: Document, ignore: list = [], hashed: list = [], collection: MongoCollection = None) -> bool:
        c = cls.collection or collection
        q = cls.validate_query(doc, ignore, hashed)
        return bool(c.find_one(q))
def exists ( cls , doc : Document , ignore : list = [ ] , hashed : list = [ ] , collection : MongoCollection = None ) -> bool : c = cls . collection or collection q = cls . validate_query ( doc , ignore , hashed ) return bool ( c . find_one ( q ) )
Function for checking if a document exists.
Function for checking if a document exists .
"""Function for checking if a document exists."""
cls
doc
Document
ignore
list
hashed
list
collection
MongoCollection