LookupInSpec.count constructor

LookupInSpec.count(
  1. Object path, {
  2. bool? xattr,
})

Creates a LookupInSpec for fetching the number of elements in the array referenced by path.

path must be a String or LookupInMacro.

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 LookupInSpec.count(Object path, {bool? xattr}) =>
    LookupInSpec._create(Opcode.getCount, path, xattr: xattr);