✨ Sort orders and transactions newest first
🔧 Don't run linting using pipenv
This commit is contained in:
1 parent
ed99dadcb0
commit
1bd8fddf73
7 files changed
+64
-26
No files matched your search
+15
-2
@@ -75,6 +75,15 @@ input OrderLineInput {
|
||||
amount: Int!
|
||||
}
|
||||
|
||||
input OrderOrdering {
|
||||
created: Ordering
|
||||
}
|
||||
|
||||
enum Ordering {
|
||||
ASC
|
||||
DESC
|
||||
}
|
||||
|
||||
type Product {
|
||||
id: ID!
|
||||
name: String!
|
||||
@@ -92,8 +101,8 @@ type Query {
|
||||
allProducts(filters: ProductFilter): [Product!]!
|
||||
allUsers: [User!]!
|
||||
allOrders: [Order!]!
|
||||
orderList(pagination: OffsetPaginationInput): [Order!]!
|
||||
transactionList(pagination: OffsetPaginationInput): [Transaction!]!
|
||||
orderList(pagination: OffsetPaginationInput, order: OrderOrdering): [Order!]!
|
||||
transactionList(pagination: OffsetPaginationInput, order: TransactionOrdering): [Transaction!]!
|
||||
}
|
||||
|
||||
type Transaction {
|
||||
@@ -103,6 +112,10 @@ type Transaction {
|
||||
created: DateTime!
|
||||
}
|
||||
|
||||
input TransactionOrdering {
|
||||
created: Ordering
|
||||
}
|
||||
|
||||
type User {
|
||||
id: ID!
|
||||
firstName: String!
|
||||
|
||||
Reference in new issue
Block a user