✨ User product purchases over time
This commit is contained in:
1 parent
f3a6e563bb
commit
7474885f14
7 files changed
+147
-6
No files matched your search
@@ -102,6 +102,11 @@ enum Ordering {
|
||||
DESC
|
||||
}
|
||||
|
||||
type Point {
|
||||
x: String!
|
||||
y: Int!
|
||||
}
|
||||
|
||||
type Product {
|
||||
id: ID!
|
||||
name: String!
|
||||
@@ -116,6 +121,11 @@ input ProductFilter {
|
||||
active: Boolean
|
||||
}
|
||||
|
||||
type ProductOrderStat {
|
||||
productName: String!
|
||||
data: [Point!]!
|
||||
}
|
||||
|
||||
type Query {
|
||||
transactionList(pagination: OffsetPaginationInput, order: TransactionOrdering): [Transaction!]!
|
||||
allProducts(filters: ProductFilter): [Product!]!
|
||||
@@ -162,5 +172,6 @@ type UserProfile {
|
||||
image: String!
|
||||
lastPurchaseDate: DateTime!
|
||||
orderSumTotal: Float!
|
||||
productOrderStats: [ProductOrderStat!]!
|
||||
topMonths: [TopMonth!]!
|
||||
}
|
||||
Reference in new issue
Block a user