MutateInSpec.remove constructor
Creates a MutateInSpec for removing a field from a document.
When xattr
is true
, this operation references the extended attribute
data of the document. Otherwise, it references the document body.
Defaults to false
.
Implementation
factory MutateInSpec.remove(
String path, {
bool? xattr,
}) {
return MutateInSpec._create(
path == '' ? Opcode.removeDoc : Opcode.remove,
path,
_noValue,
xattr: xattr,
);
}