getRelatedItems
FunctiongetRelatedItems(requestOptions: IItemRelationshipOptions): Promise<IGetRelatedItemsResponse>
import { getRelatedItems } from "@esri/arcgis-rest-portal";
//
getRelatedItems({
id: "ae7",
relationshipType: "Service2Layer" // or several ["Service2Layer", "Map2Area"]
})
.then(response)
Get the related items. See the REST Documentation for more information.
Parameters
Parameter | Type | Notes |
---|---|---|
request | IItemRelationshipOptions | Options for the request |
Returns
Promise<IGetRelatedItemsResponse>
A Promise to get some item resources.