| 3 |
"query": "\n SELECT\n t.currency AS \"currency!: SettlementCurrency\",\n COALESCE(SUM(t.amount_cents), 0)::BIGINT AS \"total!\",\n COUNT(*) AS \"count!\"\n FROM transactions t\n JOIN items i ON t.item_id = i.id\n WHERE i.project_id = $1\n AND t.status = 'completed'\n GROUP BY t.currency\n ", |