@@ -455,7 +455,6 @@ BigQuery.prototype.dataset = function(id) {
455455 * @param {?error } callback.err - An error returned while making this request
456456 * @param {module:bigquery/dataset[] } callback.datasets - The list of datasets
457457 * in your project.
458- * @param {object } callback.apiResponse - The full API response.
459458 *
460459 * @example
461460 * bigquery.getDatasets(function(err, datasets) {
@@ -468,16 +467,16 @@ BigQuery.prototype.dataset = function(id) {
468467 * // To control how many API requests are made and page through the results
469468 * // manually, set `autoPaginate` to `false`.
470469 * //-
471- * var callback = function(err, datasets, nextQuery, apiResponse) {
470+ * function manualPaginationCallback (err, datasets, nextQuery, apiResponse) {
472471 * if (nextQuery) {
473472 * // More results exist.
474- * bigquery.getDatasets(nextQuery, callback );
473+ * bigquery.getDatasets(nextQuery, manualPaginationCallback );
475474 * }
476- * };
475+ * }
477476 *
478477 * bigquery.getDatasets({
479478 * autoPaginate: false
480- * }, callback );
479+ * }, manualPaginationCallback );
481480 *
482481 * //-
483482 * // If the callback is omitted, we'll return a Promise.
@@ -575,7 +574,6 @@ BigQuery.prototype.getDatasetsStream =
575574 * @param {?error } callback.err - An error returned while making this request
576575 * @param {module:bigquery/job[] } callback.jobs - The list of jobs in your
577576 * project.
578- * @param {object } callback.apiResponse - The full API response.
579577 *
580578 * @example
581579 * bigquery.getJobs(function(err, jobs) {
@@ -588,16 +586,16 @@ BigQuery.prototype.getDatasetsStream =
588586 * // To control how many API requests are made and page through the results
589587 * // manually, set `autoPaginate` to `false`.
590588 * //-
591- * var callback = function(err, jobs, nextQuery, apiRespose) {
589+ * function manualPaginationCallback (err, jobs, nextQuery, apiRespose) {
592590 * if (nextQuery) {
593591 * // More results exist.
594- * bigquery.getJobs(nextQuery, callback );
592+ * bigquery.getJobs(nextQuery, manualPaginationCallback );
595593 * }
596- * };
594+ * }
597595 *
598596 * bigquery.getJobs({
599597 * autoPaginate: false
600- * }, callback );
598+ * }, manualPaginationCallback );
601599 *
602600 * //-
603601 * // If the callback is omitted, we'll return a Promise.
@@ -713,14 +711,13 @@ BigQuery.prototype.job = function(id) {
713711 * @param {function } callback - The callback function.
714712 * @param {?error } callback.err - An error returned while making this request
715713 * @param {array } callback.rows - The list of results from your query.
716- * @param {object } callback.apiResponse - The full API response.
717714 *
718715 * @example
719716 * var query = 'SELECT url FROM [publicdata:samples.github_nested] LIMIT 100';
720717 *
721718 * bigquery.query(query, function(err, rows) {
722719 * if (!err) {
723- * // Handle results here .
720+ * // rows is an array of results .
724721 * }
725722 * });
726723 *
@@ -737,7 +734,7 @@ BigQuery.prototype.job = function(id) {
737734 * params: [
738735 * 'google'
739736 * ]
740- * }, callback );
737+ * }, function(err, rows) {} );
741738 *
742739 * //-
743740 * // Or if you prefer to name them, that's also supported.
@@ -752,7 +749,7 @@ BigQuery.prototype.job = function(id) {
752749 * params: {
753750 * owner: 'google'
754751 * }
755- * }, callback );
752+ * }, function(err, rows) {} );
756753 *
757754 * //-
758755 * // If you need to use a `DATE`, `DATETIME`, `TIME`, or `TIMESTAMP` type in
@@ -764,16 +761,16 @@ BigQuery.prototype.job = function(id) {
764761 * // To control how many API requests are made and page through the results
765762 * // manually, set `autoPaginate` to `false`.
766763 * //-
767- * var callback = function(err, rows, nextQuery, apiResponse) {
764+ * function manualPaginationCallback (err, rows, nextQuery, apiResponse) {
768765 * if (nextQuery) {
769- * bigquery.query(nextQuery, callback );
766+ * bigquery.query(nextQuery, manualPaginationCallback );
770767 * }
771- * };
768+ * }
772769 *
773770 * bigquery.query({
774771 * query: query,
775772 * autoPaginate: false
776- * }, callback );
773+ * }, manualPaginationCallback );
777774 *
778775 * //-
779776 * // If the callback is omitted, we'll return a Promise.
0 commit comments