mongoframes/frames.py
def pull(cls, ref_cls, field, frames):
        """Pull references from a list field (does not emit signals)"""
        from mongoframes.queries import to_refs
        ids = [to_refs(f) for f in frames]
        ref_cls.get_collection().update_many(
            {field: {'$in': ids}},
            {'$pull': {field: {'$in': ids}}}
            )
Pull references from a list field (does not emit signals)
Pull references from a list field (does not emit signals)
Pull references from a list field ( does not emit signals )
def pull(cls, ref_cls, field, frames):
        from mongoframes.queries import to_refs
        ids = [to_refs(f) for f in frames]
        ref_cls.get_collection().update_many(
            {field: {'$in': ids}},
            {'$pull': {field: {'$in': ids}}}
            )
def pull ( cls , ref_cls , field , frames ) : from mongoframes . queries import to_refs ids = [ to_refs ( f ) for f in frames ] ref_cls . get_collection ( ) . update_many ( { field : { '$in' : ids } } , { '$pull' : { field : { '$in' : ids } } } )
Pull references from a list field (does not emit signals)
Pull references from a list field ( does not emit signals )
"""Pull references from a list field (does not emit signals)"""
cls
ref_cls
field
frames