Class Unset


  • public class Unset
    extends Stage
    Removes/excludes fields from documents.
    • Constructor Detail

      • Unset

        protected Unset()
    • Method Detail

      • fields

        @Deprecated(forRemoval=true)
        public static Unset fields​(String name,
                                   String... names)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new stage with the given fields
        Parameters:
        name - the first field
        names - the others
        Returns:
        this
      • unset

        public static Unset unset​(String name,
                                  String... names)
        Creates a new stage with the given fields
        Parameters:
        name - the first field
        names - the others
        Returns:
        this
        Since:
        2.2
      • getFields

        @MorphiaInternal
        public List<dev.morphia.aggregation.expressions.impls.Expression> getFields()
        Returns:
        the fields
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.