require(["esri/layers/knowledgeGraph/supportUtils"], (supportUtils) => { /* code goes here */ });
import * as supportUtils from "@arcgis/core/layers/knowledgeGraph/supportUtils.js";
esri/layers/knowledgeGraph/supportUtils
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Promise<IdTypePair[]> | Returns the entity endpoints for the given relationships. | supportUtils | |
Returns a map of origin and destination entities for specific relationships. | supportUtils |
Method Details
-
getRelationshipEndNodeIds
getRelationshipEndNodeIds(records, kg, options){Promise<IdTypePair[]>}
-
Returns the entity endpoints for the given relationships.
Parametersrecords IdTypePair[]Relationships to find the endpoints for.
The knowledge graph service that contains the relationships.
options ObjectoptionalSpecificationrequestOptions RequestOptionsoptionalAdditional options to be used for the data request.
ReturnsType Description Promise<IdTypePair[]> - Returns the origin and destination entity and named types for each relationship.
-
Returns a map of origin and destination entities for specific relationships.
Parametersrecords IdTypePair[]The relationships to retrieve the endpoints for.
The knowledge graph containing the relationships.
options ObjectoptionalSpecificationrequestOptions RequestOptionsoptionalAdditional options to be used for the data request.
Returns