Extending the Data Service
The Data Service provides features on top of a relational database that stores all the scenario data. These features include querying the data or modifying the data.
There are two different ways to perform reading/editing:
-
using GraphQL language. For more details, please refer to Section Understanding the Data Service API.
-
using a set of APIs that rely on the Data Object Model Collector, as described in Chapter Understanding the Data Object Model (DOM).
All interactions between the web client and the Data Service are performed using GraphQL language. All interactions between tasks and the Data Service are performed using a set of APIs.
When developing custom widgets, as described in Chapter Creating Custom Widgets, you may need to define new GraphQL queries, as described in Section Understanding GraphQL Default Queries. The extensions/data-service-extension library is where you will insert these extensions.