GraphQL Queries
To query data, we are supporting query data with GraphQL. More information about GraphQL can be found in the official page.
GraphQL allows us to query only the data we need, which helps partners easier to read the data.
Refer to guppy to know which type of queries we currently support.
You can switch between Graph Model and Flat Model – each using different databases (Postgres and Elastisearch). The “Docs” button can be pressed to see documentation of the queryable nodes and properties.
For example, typing the name of a node, “sample”, into the “Search Schema” search-box in the Graph Model, and clicking the “Query.sample” option will display all the properties that can be queried for that node.
For example, query this:
will return:
Or if we want to query "count" data with the information aboutkey and termsFields. The query will be like:
with query variable is $filter and $nestedAggFields are like:
The result will be shown accordingly.