Skip to content

Latest commit

 

History

History

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Google Cloud Platform logo

Open in Cloud Shell

Table of Contents

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>