method Query.prototype.offset
Query.prototype.offset(n: number): this

Set an offset on a query.

Examples

Example 1

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

// Start from the 101st result.
const offsetQuery = companyQuery.offset(100);

Parameters

n: number

The offset to start from after the start cursor.

Return Type

this

See

Usage

import { Query } from ".";