GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodejs-datastore/samples at main · googleapis/nodejs-datastore

This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Expand file tree

/

samples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

samples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
generated/v1
generated/v1
 
 
test
test
 
 
.eslintrc.yml
.eslintrc.yml
 
 
README.md
README.md
 
 
concepts.js
concepts.js
 
 
error.js
error.js
 
 
export.js
export.js
 
 
import.js
import.js
 
 
index.yaml
index.yaml
 
 
indexes.get.js
indexes.get.js
 
 
indexes.list.js
indexes.list.js
 
 
package.json
package.json
 
 
queryFilterOr.js
queryFilterOr.js
 
 
queryProfileExplain.js
queryProfileExplain.js
 
 
queryProfileExplainAggregation.js
queryProfileExplainAggregation.js
 
 
queryProfileExplainAnalyze.js
queryProfileExplainAnalyze.js
 
 
queryProfileExplainAnalyzeAggregation.js
queryProfileExplainAnalyzeAggregation.js
 
 
quickstart.js
quickstart.js
 
 
tasks.add.js
tasks.add.js
 
 
tasks.delete.js
tasks.delete.js
 
 
tasks.js
tasks.js
 
 
tasks.list.js
tasks.list.js
 
 
tasks.markdone.js
tasks.markdone.js
 
 

README.md

Outline

Google Cloud Platform logo

Google Cloud Datastore: Node.js Samples

Open in Cloud Shell

Table of Contents

  • Before you begin
  • Samples
    • Concepts
    • Error
    • Export
    • Import
    • Indexes.get
    • Indexes.list
    • Create a union between two filters
    • Run query explain (regular query)
    • Run query explain (aggregate query)
    • Run query explain analyze (regular query)
    • Run query explain analyze (aggregate query)
    • Quickstart
    • Add Task
    • Delete Task
    • Legacy Samples
    • List Tasks
    • Update Task

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Concepts

View the source code.

Open in Cloud Shell

Usage:

node samples/concepts.js


Error

View the source code.

Open in Cloud Shell

Usage:

node samples/error.js


Export

View the source code.

Open in Cloud Shell

Usage:

node samples/export.js


Import

View the source code.

Open in Cloud Shell

Usage:

node samples/import.js


Indexes.get

View the source code.

Open in Cloud Shell

Usage:

node samples/indexes.get.js


Indexes.list

View the source code.

Open in Cloud Shell

Usage:

node samples/indexes.list.js


Create a union between two filters

Create a union between two filters (logical OR operator)

View the source code.

Open in Cloud Shell

Usage:

node samples/queryFilterOr.js


Run query explain (regular query)

Run query explain for a standard query and print query explain metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/queryProfileExplain.js


Run query explain (aggregate query)

Run query explain for an aggregate query and print query explain metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/queryProfileExplainAggregation.js


Run query explain analyze (regular query)

Run query explain analyze for a standard query and print query explain metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/queryProfileExplainAnalyze.js


Run query explain analyze (aggregate query)

Run query explain analyze for an aggregate query and print query explain metrics

View the source code.

Open in Cloud Shell

Usage:

node samples/queryProfileExplainAnalyzeAggregation.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart.js


Add Task

Adds a task with a description .

View the source code.

Open in Cloud Shell

Usage:

node tasks.add.js <description>


Delete Task

Deletes task .

View the source code.

Open in Cloud Shell

Usage:

node tasks.delete.js <taskId>


Legacy Samples

View the source code.

Open in Cloud Shell

Usage:

node samples/tasks.js


List Tasks

Lists all tasks ordered by creation time.

View the source code.

Open in Cloud Shell

Usage:

node tasks.list.js


Update Task

Marks task as Done.

View the source code.

Open in Cloud Shell

Usage:

node tasks.markdone.js <taskId>

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.