queryRelated

queryRelated

queryRelated(requestOptionsIQueryRelatedOptions): Promise<IQueryRelatedResponse>

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

Use dark colors for code blocksCopy
        
1
2
3
4
5
6
7
8
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
ParameterType
requestOptions
IQueryRelatedOptions
Returns 
Promise<IQueryRelatedResponse>

A Promise that will resolve with the query response

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.