api/schemas/schema_base.py
def push(cls, data_filter: Document, key: Any, value: Any, collection: MongoCollection = None) -> None:
        """Function for pushing to a document."""
        c = cls.collection or collection

        c.update(data_filter, {'$push': {key: value}})
Function for pushing to a document.
Function for pushing to a document.
Function for pushing to a document .
def push(cls, data_filter: Document, key: Any, value: Any, collection: MongoCollection = None) -> None:
        c = cls.collection or collection
        c.update(data_filter, {'$push': {key: value}})
def push ( cls , data_filter : Document , key : Any , value : Any , collection : MongoCollection = None ) -> None : c = cls . collection or collection c . update ( data_filter , { '$push' : { key : value } } )
Function for pushing to a document.
Function for pushing to a document .
"""Function for pushing to a document."""
cls
data_filter
Document
key
Any
value
Any
collection
MongoCollection