method Datastore.prototype.createQuery
Datastore.prototype.createQuery(kind?: string): Query

Create a query for the specified kind. See Query for all of the available methods.

Examples

Example 1

const {Datastore} = require('@google-cloud/datastore');
const datastore = new Datastore();
const query = datastore.createQuery('Company');

Parameters

optional
kind: string

The kind to query.

Return Type

See

Datastore.prototype.createQuery(kind?: string[]): Query

Parameters

optional
kind: string[]

Return Type

Datastore.prototype.createQuery(
namespace: string,
kind: string,
): Query

Parameters

namespace: string
kind: string

Return Type

Datastore.prototype.createQuery(
namespace: string,
kind: string[],
): Query

Parameters

namespace: string
kind: string[]

Return Type