Skip to content

Commit 78358d4

Browse files
show connecting to local datastore in docs
1 parent 9bcc896 commit 78358d4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/datastore/dataset.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,22 @@ var SCOPES = [
8080
* a `keyFilename`.
8181
* @param {string=} options.apiEndpoint - Override the default API endpoint used
8282
* to reach Datastore. This is useful for connecting to your local Datastore
83-
* server.
83+
* server (usually "http://localhost:8080").
8484
* @param {string} options.namespace - Namespace to isolate transactions to.
8585
*
8686
* @example
8787
* var dataset = datastore.dataset({
8888
* projectId: 'my-project',
8989
* keyFilename: '/path/to/keyfile.json'
9090
* });
91+
*
92+
* //-
93+
* // Connect to your local Datastore server.
94+
* //-
95+
* var dataset = datastore.dataset({
96+
* projectId: 'my-project',
97+
* apiEndpoint: 'http://localhost:8080'
98+
* });
9199
*/
92100
function Dataset(options) {
93101
if (!(this instanceof Dataset)) {

0 commit comments

Comments
 (0)