✨ Add order stats
This commit is contained in:
1 parent
6fa6bf1334
commit
771e0c2a3b
10 files changed
+336
-27
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user