diff --git a/lib/datastore/dataset.js b/lib/datastore/dataset.js index d6ebb3289c9..e8ed4fdcaeb 100644 --- a/lib/datastore/dataset.js +++ b/lib/datastore/dataset.js @@ -80,7 +80,7 @@ var SCOPES = [ * a `keyFilename`. * @param {string=} options.apiEndpoint - Override the default API endpoint used * to reach Datastore. This is useful for connecting to your local Datastore - * server. + * server (usually "http://localhost:8080"). * @param {string} options.namespace - Namespace to isolate transactions to. * * @example @@ -88,6 +88,14 @@ var SCOPES = [ * projectId: 'my-project', * keyFilename: '/path/to/keyfile.json' * }); + * + * //- + * // Connect to your local Datastore server. + * //- + * var dataset = datastore.dataset({ + * projectId: 'my-project', + * apiEndpoint: 'http://localhost:8080' + * }); */ function Dataset(options) { if (!(this instanceof Dataset)) {