You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the callback mode, the value is indeed a boolean, however for promisified versions we always return an array (since promises can only resolve with a single argument). Something we need to improve on is highlighting the promise docs, because as it is now we simple show its usage in the last example.
Well, if you go to the link you provided, the second example shows how to use that method with a promise. I don't think we explicitly state that promises return arrays anywhere.. but that is standard for every method in the library.
Environment details
Steps to reproduce
@google-cloud/bigquery
bigQuery.dataset(this.dataSet).table(tableName).exists().then(exists => {return Array.isArray(exists})
true
But the doc says the callback value is a
Boolean
.The text was updated successfully, but these errors were encountered: