How to set operationTimeout in Couchbase NodeJS SDK 3X?

Hi. I used CouchBase NodeJS SDK 2.6.10 previously and setting operationTimeout was something like this:

const couchbase = require(‘couchbase’)
var cluster = new couchbase.Cluster(‘couchbase://XXXXXXXXXXXXXXXXXXX’);
cluster.authenticate(‘USERNAME’, ‘PASSWORD’)
var bucket = cluster.openBucket(‘statistics’)
bucket.operationTimeout = 3600000

But, now in NodeJS SDK 3.0.4, it’s a bit different, like:

const couchbase = require(‘couchbase’)
const cluster = new couchbase.Cluster(‘couchbase://XXXXXXXXXXXXXXXXXXX’, {
username: ‘USERNAME’,
password: ‘PASSWORD’
})
const bucket = cluster.bucket(‘statistics’)
const collection = bucket.defaultCollection()

Here, I’m not finding any option to set operationTimeout from. Can anybody help me about this?

you seem to be correct, I do see query level timeouts but dont see a cluster level timeout options. I have reached out to the engineers to see if I am missing something. If not will open a ticket to get it addressed.

Thank you @AV25242 sir for your consideration and please keep me updated if you find something. I’ll let you know if I find a solution myself.