Skip to main content
Module

x/google_datastore/types.d.ts>Query

A set of APIs that allow interfacing to Google Datastore on GCP from Deno.
Go to Latest
interface Query
import { type Query } from "https://deno.land/x/google_datastore@0.0.14/types.d.ts";

A query for entities.

Properties

optional
distinctOn: PropertyReference[]

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).

optional
endCursor: string

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.

optional
filter: Filter

The filter to apply.

optional
kind: KindExpression[]

The kinds to query (if empty, returns entities of all kinds).

Currently at most 1 kind may be specified.

optional
limit: number

The maximum number of results to return.

Applies after all other constraints. Optional. Unspecified is interpreted as no limit.

Must be >= 0 if specified.

optional
offset: number

The number of results to skip.

Applies before limit, but after all other constraints. Optional.

Must be >= 0 if specified.

optional
order: PropertyOrder[]

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

optional
projection: Projection[]

The projection to return.

Defaults to returning all properties.

optional
startCursor: string

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.