import GraphQuery from "@arcgis/core/rest/knowledgeGraph/GraphQuery.js";const GraphQuery = await $arcgis.import("@arcgis/core/rest/knowledgeGraph/GraphQuery.js");- Inheritance:
- GraphQuery→
Accessor
- Subclasses:
- GraphQueryStreaming
- Since
- ArcGIS Maps SDK for JavaScript 4.25
Defines the query operation performed on a knowledge graph service's graph resource. The entities and relationships in the graph are queried by sending an Esri implementation of openCypher query.
Notes
ArcGIS Knowledge does not support write capabilities of the openCypher query language. All openCypher queries must be read-only.
Example
//typical use caseKnowledgeGraphModule.executeQuery( knowledgeGraph, //graph { //queryArguments openCypherQuery: "MATCH (n) RETURN n LIMIT 1", //query }).then((queryResult) => { //do something with the result});Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
| |
openCypherQuery
Property
- Type
- string
The Esri implementation of openCypher query to be executed against the knowledge graph.
Required
executeQuery() will fail if not provided.
- Default value
- ""