✨ Add order stats

This commit is contained in:
Nikolai R Kristiansen committed 2022-02-06 21:05:40 +01:00
1 parent 6fa6bf1334
commit 771e0c2a3b
10 files changed
+336 -27

No files matched your search

+13
View File
@@ -84,6 +84,18 @@ input OrderOrdering {
created: Ordering
}
type OrderStats {
yearly: [OrderStatsByTime!]!
monthly: [OrderStatsByTime!]!
dayly: [OrderStatsByTime!]!
hourly: [OrderStatsByTime!]!
}
type OrderStatsByTime {
period: Int!
count: String!
}
enum Ordering {
ASC
DESC
@@ -109,6 +121,7 @@ type Query {
allOrders: [Order!]!
orderList(pagination: OffsetPaginationInput, order: OrderOrdering): [Order!]!
transactionList(pagination: OffsetPaginationInput, order: TransactionOrdering): [Transaction!]!
orderStats: OrderStats!
}
type Transaction {