Details
-
Bug
-
Resolution: Fixed
-
Test Blocker
-
None
-
DOC-2020-S17-Sep06
-
1
Description
The example given in this page:
var N1qlQuery = couchbase.N1qlQuery;
// ...
query = N1qlQuery.fromString('SELECT name, email FROM default LIMIT 10');
bucket.query(query, function(err, rows, meta) {
for (row in rows)
});
is not correct; when executed will return
"undefined undefined"
printed repeatedly by the "console.log" call for however many rows are returned in the result set.
The correct syntax is:
var N1qlQuery = couchbase.N1qlQuery;
// ...
query = N1qlQuery.fromString('SELECT name, email FROM default LIMIT 10');
bucket.query(query, function(err, rows, meta) {
for (row in rows)
});
Reporter: Morris Schreibman
E-mail: mschreib_il@yahoo.com