Skip to content

Commit

Permalink
Add some comments for Server re-org sample (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-robobug committed Oct 22, 2021
1 parent 2ebad08 commit 5222dd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/hello-world/examples/n1ql-hello-world.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ async function go() {
})

// tag::n1ql-query[]
// Call the query() function on the cluster object and store the result.
const result = await cluster.query('SELECT "Hello World" as greeting')

// Iterate over the rows to access result data and print to the terminal.
result.rows.forEach((row) => {
console.log(row)
})
Expand Down

0 comments on commit 5222dd8

Please sign in to comment.