Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Query

import type { Query } from "https://googleapis.deno.dev/v1/datastore:v1.ts";

A query for entities.

interface Query {
distinctOn?: PropertyReference[];
endCursor?: Uint8Array;
filter?: Filter;
kind?: KindExpression[];
limit?: number;
offset?: number;
order?: PropertyOrder[];
projection?: Projection[];
startCursor?: Uint8Array;
}

§Properties

§
distinctOn?: PropertyReference[]
[src]

The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned). Requires: * If order is specified, the set of distinct on properties must appear before the non-distinct on properties in order.

§
endCursor?: Uint8Array
[src]

An ending point for the query results. Query cursors are returned in query result batches and can only be used to limit the same query.

§
filter?: Filter
[src]

The filter to apply.

§

The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.

§
limit?: number
[src]

The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be >= 0 if specified.

§
offset?: number
[src]

The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be >= 0 if specified.

§

The order to apply to the query results (if empty, order is unspecified).

§
projection?: Projection[]
[src]

The projection to return. Defaults to returning all properties.

§
startCursor?: Uint8Array
[src]

A starting point for the query results. Query cursors are returned in query result batches and can only be used to continue the same query.