Options that can be passed into tasks/query/QueryService!QueryService.query.

interface QueryOptions {
    cancelToken?: CancelToken;
    maxAllowableOffset?: number;
    maxResults?: number;
    outFields?: string[];
    outSpatialReference?: SpatialReference;
    returnGeometry?: boolean;
    spatialFilter?: GeometryUnion;
}

Properties

cancelToken?: CancelToken

An optional cancel token from a support/Cancellable!Cancellable that can be used to cancel the query.

maxAllowableOffset?: number

The maximum allowable offset used for generalizing geometries returned by the query operation.

maxResults?: number

The maximum number of results to return.

outFields?: string[]

Fields that should be returned for each feature.

outSpatialReference?: SpatialReference

The spatial reference for the returned geometry.

returnGeometry?: boolean

Whether geometry for features should be returned.

spatialFilter?: GeometryUnion

Spatial filter used to filter search results. If specified, results are limited to features that intersect the geometry.