I am testing the aggregation feature that was just released, but keep getting this error.
The setup looks correct, and countTransactionEmission is running as expected.
I am testing the aggregation feature that was just released, but keep getting this error.
The setup looks correct, and countTransactionEmission is running as expected.
Hi!
It seems like we have a bug in this new feature. Not in how it operates, but to me it seems lik you must have a filter and a group.
Working:
{aggregateOrderLine(
filter: {product: {ne: null}},
group: product
) {
product
productNumber
sum: amount_sum
_count
}
}
Not Working (same error message as you have experienced):
{aggregateOrderLine(
filter: {product: {ne: null}}
) {
sum: amount_sum
_count
}
}
Registering a challenge on this one. Workaround is to group by one of the properties of the object class, and then to sum these records in a function etc.
That worked for me as well, thank you!
Also, it looks like you don’t have any join-operations? Is there any other hack to create deep-data binding?
In my case, I would like to aggregate the object TransactionEmission for Transactions that again are filtered on the property Company. And I hope to do this filtering in GraphQL, as I want to lazy load everything from the client side. Is this possible now?