queryRelated

Function

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

Query the related records for a feature service. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IQueryRelatedRequestOptions

Returns

Promise<IQueryRelatedResponse> - A Promise that will resolve with the query response


Function defined in packages/arcgis-rest-feature-service/src/queryRelated.ts:66