Query Data

These actions provide ability to generate and execute system specific queries on a query manager on demand, from simple select statements to complex requests.

Query Data Actions

GetQuery

Executes and returns results for a single query from a specific query manager. Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

Domain

Name of the query manager to read data from

product

-

Input Element

Json path for the input in event payload for query variables

parameters

-

Output Element

Json path for the output in response event payload

$.list

-

With event metadata parameters as:

Parameter
Definition
Example
Default

Output Pattern

JMESPath pattern to apply on data output, before returning response

{id:id, name:data.name, description:data.description}

-

Query ID

Id of the query to execute

product_search_0001

-

Query Name

Name of the query to execute

Product Search

-

Query Json

Full Json representation of query to execute

-

-

First

Whether to return first record only from results

true

false

Sort Path

Json path in query results to be used for sorting

product.id

-

Sorter Path

Json path in request event payload to be used for sorting

productids

-

chevron-rightExamplehashtag

Input

{
    "parameters": {
        "search": "test"
    }
}

Event Metadata

circle-info

sortPath and sorterPath parameters are used to allow sorting of results by an already prioritized list of ids (such as product ids sorted based on search releavence).

ProduceQuery

Generates a query statement for a specific query manager, which is typically used by 3rd party systems in converting query objects into system specific requests. Event metadata fields applicable for this action are as follows:

Field
Definition
Example
Default

Domain

Name of the query manager to produce statement for

product

-

Input Element

Json path for the input in event payload for query variables

parameters

-

Output Element

Json path for the output in response event payload

$.query

-

With event metadata parameters as:

Parameter
Definition
Example
Default

Query ID

Id of the query to execute

product_search_0001

-

Query Name

Name of the query to execute

Product Search

-

Query Json

Full Json representation of query to execute

-

-

circle-info

Produced statement is returned as a "query" field of the outputElement.

Last updated