Index

Index

new Index(datastore, id)

Parameters:
Name Type Description
datastore Datastore

The parent instance of this index.

id string

The index name or id.

Example
```
const {Datastore} = require('@google-cloud/datastore');
const datastore = new Datastore();
const index = datastore.index('my-index');
```