✨ UserDetail and UserList views

This commit is contained in:
Nikolai R Kristiansen committed 2022-02-12 12:58:04 +01:00
1 parent ec0549154d
commit e2a84c25a6
16 files changed
+201 -22

No files matched your search

+9
View File
@@ -121,9 +121,16 @@ type Query {
allOrders: [Order!]!
orderList(pagination: OffsetPaginationInput, order: OrderOrdering): [Order!]!
transactionList(pagination: OffsetPaginationInput, order: TransactionOrdering): [Transaction!]!
user(userId: ID!): User!
orderStats: OrderStats!
}
type TopMonth {
period: String!
count: Int!
sum: Int!
}
type Transaction {
id: ID!
user: User!
@@ -147,4 +154,6 @@ type UserProfile {
balance: Float!
image: String!
lastPurchaseDate: DateTime!
orderSumTotal: Float!
topMonths: [TopMonth!]!
}