Couchbase Node.js SDK 4.3
const queryResult = await cluster.query(
"SELECT * FROM `travel-sample`.inventory.hotel WHERE city=$1 LIMIT 10",
{ parameters: ['Paris']}
);
queryResult.rows.forEach((row)=>{
console.log(row);
});
The Node.js SDK allows you to connect to a Couchbase Server cluster from Node.js. The Node.js SDK is a native Node.js module that uses the very fast Couchbase++ library to handle communicating with the cluster over the Couchbase binary protocol.
Using Your Database
How-to guides and tutorials to help you start your development journey with Couchbase and the Node.js SDK.
Getting Started
Transactions
Working with Data
Managing Couchbase
Errors & Diagnostics
Learn
Take a deep-dive into the SDK concept material and learn more about Couchbase.
Data Concepts
Errors & Diagnostics Concepts
Resources
Useful resources to help support your development experience with Couchbase and the Node.js SDK.