• import { queryFeatures } from '@esri/arcgis-rest-feature-layer';
    //
    queryFeatures({
    url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
    where: "STATE_NAME = 'Alaska'"
    })
    .then(result)

    Query a feature service. See REST Documentation for more information.

    Parameters

    • requestOptions: IQueryFeaturesOptions

      Options for the request

    Returns Promise<IQueryFeaturesResponse | IQueryResponse>

    A Promise that will resolve with the query response.