import { queryFeatures, decodeValues } from '@esri/arcgis-rest-feature-service';
const url = ``
queryFeatures({ url })
  .then(queryResponse => {

Replaces the raw coded domain values in a query response with descriptions (for legibility).


Parameter Type Default Notes
requestOptions Required IDecodeValuesRequestOptions

Options for the request.

Available requestOptions

Property Type Notes
authentication Optional Inherited IAuthenticationManager

The instance of IAuthenticationManager to use to authenticate this request.

fetch Optional Inherited function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

fields Optional IField[]
  • If a fieldset is provided, no internal metadata check will be issued to gather info about coded value domains.
headers Optional Inherited

Additional Headers to pass into the request.

httpMethod Optional Inherited HTTPMethods

The HTTP method to send the request with.

maxUrlLength Optional Inherited number

If the length of a GET request's URL exceeds maxUrlLength the request will use POST instead.

params Optional Inherited IParams

Additional parameters to pass in the request.

portal Optional Inherited string

Base url for the portal you want to make the request to. Defaults to ''.

queryResponse IQueryFeaturesResponse

Unique identifier of the feature.

rawResponse Optional Inherited boolean

Return the raw response

url Optional string

Layer service url.


Promise<IQueryFeaturesResponse> - A Promise that will resolve with the addFeatures response.

Property Type Notes
displayFieldName Optional Inherited string
exceededTransferLimit Optional boolean
features Inherited IFeature[]
fields Optional Inherited IField[]
geometryType Optional Inherited esriGeometryType
globalIdFieldName Optional Inherited string
hasM Optional Inherited boolean
hasZ Optional Inherited boolean
objectIdFieldName Optional Inherited string
spatialReference Optional Inherited ISpatialReference

Function defined in packages/arcgis-rest-feature-service/src/decodeValues.ts:63