Class UnsetOperator


  • @MorphiaInternal
    public class UnsetOperator
    extends UpdateOperator
    Since:
    2.0
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • UnsetOperator

        @MorphiaInternal
        public UnsetOperator​(String field)
        Parameters:
        field - the field
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Method Detail

      • toTarget

        public OperationTarget toTarget​(dev.morphia.internal.PathTarget pathTarget)
        Description copied from class: UpdateOperator
        Creates the OperationTarget for serialization
        Overrides:
        toTarget in class UpdateOperator
        Parameters:
        pathTarget - the PathTarget
        Returns:
        the OperationTarget