couchbase
    Preparing search index...

    Class LookupInSpec

    Represents a sub-operation to perform within a lookup-in operation.

    Index

    Accessors

    Methods

    Accessors

    Methods

    • Returns the number of elements in the array reference by the path.

      Parameters

      • path: string | LookupInMacro

        The path to the field.

      • Optionaloptions: { xattr?: boolean }

        Optional parameters for this operation.

        • Optionalxattr?: boolean

          Whether this operation should reference the document body or the extended attributes data for the document.

      Returns LookupInSpec

    • Returns whether a specific field exists in the document.

      Parameters

      • path: string | LookupInMacro

        The path to the field.

      • Optionaloptions: { xattr?: boolean }

        Optional parameters for this operation.

        • Optionalxattr?: boolean

          Whether this operation should reference the document body or the extended attributes data for the document.

      Returns LookupInSpec

    • Creates a LookupInSpec for fetching a field from the document.

      Parameters

      • path: string | LookupInMacro

        The path to the field.

      • Optionaloptions: { xattr?: boolean }

        Optional parameters for this operation.

        • Optionalxattr?: boolean

          Whether this operation should reference the document body or the extended attributes data for the document.

      Returns LookupInSpec