def add_to_set(self, qfield, value): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.add_to_set`''' return UpdateExpression(self).add_to_set(qfield, value)
def pop_last(self, qfield): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.pop_last`''' return UpdateExpression(self).pop_last(qfield)
def remove_all(self, qfield, *value): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.remove_all`''' return UpdateExpression(self).remove_all(qfield, *value)
def extend(self, qfield, *value): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.extend`''' return UpdateExpression(self).extend(qfield, *value)
def inc(self, *args, **kwargs): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.inc`''' return UpdateExpression(self).inc(*args, **kwargs)
def unset(self, qfield): ''' Refer to: :func:`~mongoalchemy.update_expression.UpdateExpression.unset`''' return UpdateExpression(self).unset(qfield)
def __delattr__(self, field): q = self.__class__.query.filter(self.__class__.mongo_id == self.mongo_id) ex = UpdateExpression(q) ex.unset(getattr(self.__class__, field)) ex.execute()