QueryGroupByExpression 查询分组
1. 结构声明
- TS Declaration
- JSON Schema
class QueryGroupByExpression extends LogicItem {
groupElement: LogicItem;
}
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"folded": {
"type": "boolean"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
},
"groupElement": {
"$ref": "#/definitions/LogicItem"
}
},
"required": [
"groupElement"
],
"additionalProperties": false
}
2. 节点示例
(1) 示例
AST 如下:
- JSON
- YAML
{
"concept": "QueryGroupByExpression",
"groupElement": {
"concept": "QueryFieldExpression",
"isDotStar": false,
"entityAsName": "OrderProduct",
"propertyName": "productId",
"asName": "productId"
}
}
concept: QueryGroupByExpression
groupElement:
concept: QueryFieldExpression
isDotStar: false
entityAsName: OrderProduct
propertyName: productId
asName: productId
(2) 示例
AST 如下:
- JSON
- YAML
{
"concept": "QueryGroupByExpression",
"groupElement": {
"concept": "QueryFieldExpression",
"isDotStar": false,
"entityAsName": "Product",
"propertyName": "name",
"asName": "productName"
}
}
concept: QueryGroupByExpression
groupElement:
concept: QueryFieldExpression
isDotStar: false
entityAsName: Product
propertyName: name
asName: productName