Details
-
Improvement
-
Resolution: Fixed
-
Major
-
sdk-3.2, sdk-3.3
-
DOC-2022-S4, DOC-2022-S5, DOC-2022-S6, DOC-2022-S7, DOC-2022-S8, DOC-2022-S9
-
1
Description
In the code sample below (N1QL transactions section) what is inventory ? Understood it's scope but was that an object or can I specify a string ? “Inventory” ?
cluster.transactions().run(async (ctx) => {
|
const st = 'SELECT * FROM hotel WHERE country = $1' |
const qr = await ctx.query(st, { |
scope: inventory,
|
parameters: ['United Kingdom'], |
})
|
for (let row in qr.rows) { |
// do something |
}
|
})
|