-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(samples): updated samples code to use async await #1
base: master
Are you sure you want to change the base?
Conversation
.catch(err => { | ||
// Handle the error. | ||
}); | ||
const [clusterResponse, apiResponse] = await cluster.get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry,
Missed clusterResponse
->clusterInstance
please
// [END bigtable_create_row] | ||
}, | ||
|
||
createRules: (instanceId, tableId) => { | ||
createRules: async (instanceId, tableId) => { | ||
const Bigtable = require('@google-cloud/bigtable'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the [START ...]
tag above this line
@@ -14,7 +14,7 @@ | |||
*/ | |||
|
|||
const snippets = { | |||
createRow: (instanceId, tableId) => { | |||
createRow: async (instanceId, tableId) => { | |||
const Bigtable = require('@google-cloud/bigtable'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move the [START ...]
tag above this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -14,7 +14,7 @@ | |||
*/ | |||
|
|||
const snippets = { | |||
createRow: (instanceId, tableId) => { | |||
createRow: async (instanceId, tableId) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lines 52, 53: If the targeted cell is unset, it will be treated as a containing an
// empty string. Please rephrase it to "If the targeted cell is unset, it will be treated as a cell containing an empty string." Search and change everywhere.
Fixes googleapis/google-cloud-node#2869 (it's a good idea to open an issue first for discussion)
Fixes https://github.com/googleapis/nodejs-bigtable