Class ArrayAddUnique


  • public class ArrayAddUnique
    extends MutateInSpec
    An intention to perform a SubDocument array add-unique operation.
    Since:
    1.0.0
    Author:
    Graham Pople
    • Method Detail

      • xattr

        public ArrayAddUnique xattr()
        Sets that this is an extended attribute (xattr) field.
        Returns:
        this, for chaining
      • createPath

        public ArrayAddUnique createPath()
        Sets that this parent fields should be created automatically.
        Returns:
        this, for chaining
      • encoder

        public ArrayAddUnique encoder​(Encoder encoder)
        Sets a custom encoder, allowing any data type to be encoded.
        Parameters:
        encoder - the custom Encoder
        Returns:
        this, for chaining
      • expandMacro

        @Internal
        public ArrayAddUnique expandMacro()
        Sets that this contains a macro that should be expanded on the server. For internal use.
        Returns:
        this, for chaining