Java NodeJS Python .NET PHP Ruby Scala Go C++ Tools
  • Java API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Transactions KV Mutate
  • Transactions N1QL
  • Upsert
  • NodeJS API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Python API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • .NET API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • PHP API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Ruby API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Scala API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Go API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • C++ API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Tools
  • N1QL Query Using curl
  • Generate Test Data
  • More Online Tools

NodeJS - Query Rows

Basic N1QL query, with looping through each returned row.

Visit the docs to learn more about Handling Query Results in Node.
Also try Couchbase Server in an online playground: Start Playground Session