【发布时间】:2022-11-03 18:59:51
【问题描述】:
我正在尝试添加边缘集合中的所有金额,并从名为 Transaction 的边缘集合中的日期属性中提取日期。
但是,我在收集语句中遇到错误。
for d in Transaction
filter d._to == "Account/123"
COLLECT aggregate ct =count(d._id),
aggregate totamnt=sum(d.Amount),
aggregate daysactive= count(distinct date_trunc(d.Time))
return distinct {"Incoming Accounts":length, "Days Active": daysactive}
【问题讨论】: