Build a Query object.
Queries are built with {module:datastore#createQuery} and Transaction#createQuery.
end(end: string | Buffer): this
Set an ending cursor to a query.
Datastore allows querying on properties. Supported comparison operators
are =, <, >, <=, >=, !=, HAS_ANCESTOR, IN and NOT_IN.
To filter by ancestors, see {module:datastore/query#hasAncestor}.
groupBy(fieldNames: string | string[]): this
Group query results by a list of properties.
hasAncestor(key: Key): this
Filter a query by ancestors.
limit(n: number): this
Set a limit on a query.
offset(n: number): this
Set an offset on a query.
order(property: string,options?: OrderOptions,): this
Sort the results by a property name in ascending or descending order. By default, an ascending sort order will be used.
run(options?: RunQueryOptions): Promise<RunQueryResponse>
Run the query.
run(options: RunQueryOptions,callback: RunQueryCallback,): void
run(callback: RunQueryCallback): void
runStream(options?: RunQueryStreamOptions): import("stream").Transform
Run the query as a readable object stream.
select(fieldNames: string | string[]): this
Retrieve only select properties from the matched entities.
Queries that select a subset of properties are called Projection Queries.
start(start: string | Buffer): this
Set a starting cursor to a query.