method Query.prototype.end
Query.prototype.end(end: string | Buffer): this

Set an ending cursor to a query.

Examples

Example 1

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

const cursorToken = 'X';

// Retrieve results limited to the extent of cursorToken.
const endQuery = companyQuery.end(cursorToken);

Parameters

end: string | Buffer

Return Type

this

See

Usage

import { Query } from ".";