queryRelated
FunctionqueryRelated(requestOptions: IQueryRelatedOptions): Promise<IQueryRelatedResponse>
Query the related records for a feature service. See the REST Documentation for more information.
import { queryRelated } from '@esri/arcgis-rest-feature-service'
queryRelated({
url: "http://services.myserver/OrgID/ArcGIS/rest/services/Petroleum/KSPetro/FeatureServer/0",
relationshipId: 1,
params: { returnCountOnly: true }
})
.then(response) // response.relatedRecords
Parameters
Parameter | Type | Notes |
---|---|---|
request | IQueryRelatedOptions |
Returns
Promise<IQueryRelatedResponse>
A Promise that will resolve with the query response