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

Learn

Take a deep-dive into the SDK concept material and learn more about Couchbase.

Resources

Useful resources to help support your development experience with Couchbase and the Node.js SDK.