supportUtils

AMD: require(["esri/layers/knowledgeGraph/supportUtils"], (supportUtils) => { /* code goes here */ });
ESM: import * as supportUtils from "@arcgis/core/layers/knowledgeGraph/supportUtils.js";
Object: esri/layers/knowledgeGraph/supportUtils
Since: ArcGIS Maps SDK for JavaScript 4.32
beta

Method Overview

Name Return Type Summary Object
Promise<IdTypePair[]>

Returns the entity endpoints for the given relationships.

supportUtils
Promise<Map<string, string[]>>

Returns a map of origin and destination entities for specific relationships.

supportUtils

Method Details

getRelationshipEndNodeIds

Method
getRelationshipEndNodeIds(records, kg, options){Promise<IdTypePair[]>}

Returns the entity endpoints for the given relationships.

Parameters
records IdTypePair[]

Relationships to find the endpoints for.

The knowledge graph service that contains the relationships.

options Object
optional
Specification
requestOptions RequestOptions
optional

Additional options to be used for the data request.

Returns
Type Description
Promise<IdTypePair[]>
  • Returns the origin and destination entity and named types for each relationship.

getRelationshipEndNodeMap

Method
getRelationshipEndNodeMap(records, kg, options){Promise<Map<string, string[]>>}

Returns a map of origin and destination entities for specific relationships.

Parameters
records IdTypePair[]

The relationships to retrieve the endpoints for.

The knowledge graph containing the relationships.

options Object
optional
Specification
requestOptions RequestOptions
optional

Additional options to be used for the data request.

Returns
Type Description
Promise<Map<string, string[]>>
  • Returns the relationship id, and the origin and destination ids.

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