Skip to main content
Version: 3.8

QueryGroupByExpression 查询分组

1. 结构声明

class QueryGroupByExpression extends LogicItem {
groupElement: LogicItem;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "QueryGroupByExpression",
"groupElement": {
"concept": "QueryFieldExpression",
"isDotStar": false,
"entityAsName": "OrderProduct",
"propertyName": "productId",
"asName": "productId"
}
}

对应的代码如下:

OrderProduct.productId

(2) 示例

AST 如下:

{
"concept": "QueryGroupByExpression",
"groupElement": {
"concept": "QueryFieldExpression",
"isDotStar": false,
"entityAsName": "Product",
"propertyName": "name",
"asName": "productName"
}
}

对应的代码如下:

Product.name