The name of the collection this Collection object references.
Returns a BinaryCollection object reference, allowing access to various binary operations possible against a collection.
Checks whether a specific document exists or not.
The document key to check for existence.
Optional
options: ExistsOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<ExistsResult>A node-style callback to be invoked after execution.
Retrieves the value of a document from the collection.
The document key to retrieve.
Optional
options: GetOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<GetResult>A node-style callback to be invoked after execution.
Retrieves the value of the document from all available replicas. Note that as replication is asynchronous, each node may return a different value.
The document key to retrieve.
Optional
options: GetAllReplicasOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<GetReplicaResult[]>A node-style callback to be invoked after execution.
Locks a document and retrieves the value of that document at the time it is locked.
The document key to retrieve and lock.
The amount of time to lock the document for, specified in seconds.
Optional
options: GetAndLockOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<GetResult>A node-style callback to be invoked after execution.
Retrieves the value of the document and simultanously updates the expiry time for the same document.
The document to fetch and touch.
The new expiry to apply to the document, specified in seconds.
Optional
options: GetAndTouchOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<GetResult>A node-style callback to be invoked after execution.
Retrieves the value of the document from any of the available replicas. This will return as soon as the first response is received from any replica node.
The document key to retrieve.
Optional
options: GetAnyReplicaOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<GetReplicaResult>A node-style callback to be invoked after execution.
Inserts a new document to the collection, failing if the document already exists.
The document key to insert.
The value of the document to insert.
Optional
options: InsertOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutationResult>A node-style callback to be invoked after execution.
Returns a CouchbaseList permitting simple list storage in a document.
The document key the data-structure resides in.
Performs a lookup-in operation against a document, fetching individual fields or information about specific fields inside the document value.
The document key to look in.
A list of specs describing the data to fetch from the document.
Optional
options: LookupInOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<LookupInResult>A node-style callback to be invoked after execution.
Performs a lookup-in operation against a document, fetching individual fields or information about specific fields inside the document value from all available replicas. Note that as replication is asynchronous, each node may return a different value.
The document key to look in.
A list of specs describing the data to fetch from the document.
Optional
options: LookupInOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<LookupInReplicaResult[]>A node-style callback to be invoked after execution.
Performs a lookup-in operation against a document, fetching individual fields or information about specific fields inside the document value from any of the available replicas in the cluster.
The document key to look in.
A list of specs describing the data to fetch from the document.
Optional
options: LookupInOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<LookupInReplicaResult>A node-style callback to be invoked after execution.
Returns a CouchbaseMap permitting simple map storage in a document.
The document key the data-structure resides in.
Performs a mutate-in operation against a document. Allowing atomic modification of specific fields within a document. Also enables access to document extended-attributes.
The document key to mutate.
A list of specs describing the operations to perform on the document.
Optional
options: MutateInOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutateInResult>A node-style callback to be invoked after execution.
Returns a CollectionQueryIndexManager which can be used to manage the query indexes of this collection.
Returns a CouchbaseQueue permitting simple queue storage in a document.
The document key the data-structure resides in.
Remove an existing document from the collection.
The document key to remove.
Optional
options: RemoveOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutationResult>A node-style callback to be invoked after execution.
Replaces the value of an existing document. Failing if the document does not exist.
The document key to replace.
The new value for the document.
Optional
options: ReplaceOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutationResult>A node-style callback to be invoked after execution.
Performs a key-value scan operation.
Use this API for low concurrency batch queries where latency is not a critical as the system may have to scan a lot of documents to find the matching documents. For low latency range queries, it is recommended that you use SQL++ with the necessary indexes.
The type of scan to execute.
Optional
options: ScanOptionsOptional parameters for the scan operation.
Optional
callback: NodeCallback<ScanResult[]>A node-style callback to be invoked after execution.
Returns a CouchbaseSet permitting simple set storage in a document.
The document key the data-structure resides in.
Updates the expiry on an existing document.
The document key to touch.
The new expiry to set for the document, specified in seconds.
Optional
options: TouchOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutationResult>A node-style callback to be invoked after execution.
Unlocks a previously locked document.
The document key to unlock.
The CAS of the document, used to validate lock ownership.
Optional
options: UnlockOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<void>A node-style callback to be invoked after execution.
Upserts a document to the collection. This operation succeeds whether or not the document already exists.
The document key to upsert.
The new value for the document.
Optional
options: UpsertOptionsOptional parameters for this operation.
Optional
callback: NodeCallback<MutationResult>A node-style callback to be invoked after execution.
Exposes the operations which are available to be performed against a collection. Namely the ability to perform KV operations.