Skip to content
import GraphDataModelOperationResult from "@arcgis/core/rest/knowledgeGraph/GraphDataModelOperationResult.js";
Inheritance:
GraphDataModelOperationResultAccessor
Subclasses:
GraphAddFieldIndexResult, GraphAddNamedTypesResult, GraphAddPropertyResult, GraphDeleteFieldIndexResult, GraphDeleteNamedTypeResult, GraphDeletePropertyResult, GraphUpdateNamedTypesResult, GraphUpdatePropertyResult, GraphUpdateSearchIndexResult
Since
ArcGIS Maps SDK for JavaScript 4.33

The result returned after modifying a knowledge graph data model. This contains information on the number of modifications made, errors encountered when executing the operation or errors encountered decoding the results.

Constructors

Constructor

Constructor
Parameters
ParameterTypeDescriptionRequired
properties
See the properties table for a list of all the properties that may be passed into the constructor.

Properties

Any properties can be set, retrieved or listened to. See the Watch for changes topic.

declaredClass

readonlyinherited Property
Type
string
Inherited from: Accessor

The name of the class. The declared class name is formatted as esri.folder.className.

decoderError

Property
Type
EsriError | null

Any errors encountered while decoding the results.

results

Property
Type
Array<ResultsObject>

Information about the add, update or delete modifications made to the data model.

resultsCount

Property
Type
number

The number of modifications made to the graph.

Default value
0

updatedKnowledgeGraph

Property
Type
KnowledgeGraph | null

The updated knowledge graph with the applied additions, updates, and deletions.

Type definitions

ResultsObject

Type definition

Information about the success of adding a new entity type or relationship type to the graph.

name

Property
Type
string

The name based on the operation that created the results e.g. namedType, graph property name, index names etc.

error

Property
Type
EsriError | undefined

Any errors encountered while adding, deleting or updating the data model.