Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Scope

Exposes the operations which are available to be performed against a scope. Namely the ability to access to Collections for performing operations.

Hierarchy

  • Scope

Index

Accessors

  • get name(): string
  • The name of the scope this Scope object references.

    Returns string

Methods

  • Creates a Collection object reference to a specific collection.

    Parameters

    • collectionName: string

      The name of the collection to reference.

    Returns Collection

  • Executes a N1QL query against the cluster scoped to this scope.

    Type parameters

    • TRow = any

    Parameters

    • statement: string

      The N1QL statement to execute.

    • Optional options: QueryOptions

      Optional parameters for this operation.

    • Optional callback: NodeCallback<QueryResult<TRow>>

      A node-style callback to be invoked after execution.

    Returns StreamableRowPromise<QueryResult<TRow>, TRow, QueryMetaData>

Generated using TypeDoc