Query Data
This handler (com.rierino.handler.QueryEventHandler) provides ability to generate and execute system specific queries on a query manager on demand, from simple select statements to complex requests.
Handler Parameters
Parameter
Definition
Example
Default
Actions
GetQuery
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Query Data GetQuery action eventMeta fields",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"definition": "Name of the query manager to read data from",
"example": "product"
},
"inputElement": {
"type": "string",
"definition": "Json path for the input in event payload for query variables",
"example": "parameters"
},
"outputElement": {
"type": "string",
"definition": "Json path for the output in response event payload",
"example": "$.list"
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Query Data GetQuery action eventMeta.parameters",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"outputPattern": {
"type": "string",
"definition": "JMESPath pattern to apply on data output, before returning response",
"example": "{id:id, name:data.name, description:data.description}"
},
"queryId": {
"type": "string",
"definition": "Id of the query to execute",
"example": "product_search_0001"
},
"queryName": {
"type": "string",
"definition": "Name of the query to execute",
"example": "Product Search"
},
"queryJson": {
"type": "object",
"definition": "Full Json representation of query to execute"
},
"first": {
"type": "boolean",
"definition": "Whether to return first record only from results",
"default": false
},
"sortPath": {
"type": "string",
"definition": "Json path in query results to be used for sorting",
"example": "product.id"
},
"sorterPath": {
"type": "string",
"definition": "Json path in request event payload to be used for sorting",
"example": "productids"
}
}
}
}
}
}
}ProduceQuery
Field
Definition
Example
Default
Parameter
Definition
Example
Default
Last updated

