Aggregate queries
Count Query
{
Invoice_aggregate {
_count
}
}{
Invoice_aggregate (status: "updated") {
_count
}
}Sum Query
Group By Query
Last updated
{
Invoice_aggregate {
_count
}
}{
Invoice_aggregate (status: "updated") {
_count
}
}Last updated
{
Invoice_aggregate {
_sum {
amount
}
}
}query {
Invoice_aggregate(where: { status: "updated" }) {
_sum {
amount
}
}
}{
Invoice_aggregate {
_count
_groupby{
invoiceType
}
}
}{
Invoice_aggregate (status: "updated") {
_count
_groupby{
invoiceType
}
}
}