Skip to content

Saleor Core: the high performance, composable, headless commerce API.

WiP: need to implement filters correctly

Adam Janik2d6f403566a1
diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.py
index e525b851fb..8d6b57db0d 100644
--- a/saleor/graphql/order/types.py
+++ b/saleor/graphql/order/types.py
@@ -10,4 +10,11 @@ class Order(CountableDjangoObjectType):
size or color."""
interfaces = [relay.Node]
model = models.Order
- filter_fields = ['user_email']
+ filter_fields = {
+ 'id': ['exact'],
+ 'user_email': ['exact', 'icontains'],
+ 'created': ['range', 'lte', 'gte'],
+ # 'payment_status': ['exact'],
+ 'status': ['exact'],
+ # 'total': ['range', 'lte', 'gte'],
+}