✨ Start log view with orders & transactions

This commit is contained in:
Nikolai R Kristiansen committed 2022-02-02 23:06:33 +01:00
1 parent 85698deba5
commit a2cfd0ceaf
8 files changed
+169 -1

No files matched your search

+3 -1
View File
@@ -2,7 +2,7 @@ import strawberry
import strawberry_django
from main.api import mutations
from main.api.types import Order, Product, User
from main.api.types import Order, Product, User, Transaction
@strawberry.type
@@ -10,6 +10,8 @@ class Query:
all_products: list[Product] = strawberry_django.field()
all_users: list[User] = strawberry_django.field()
all_orders: list[Order] = strawberry_django.field()
order_list: list[Order] = strawberry_django.field(pagination=True)
transaction_list: list[Transaction] = strawberry_django.field(pagination=True)
@strawberry.type