File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
examples/cookbook/cookbook Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ class Meta:
12
12
model = Category
13
13
interfaces = (Node , )
14
14
filter_fields = ['name' , 'ingredients' ]
15
- filter_order_by = ['name' ]
16
15
17
16
18
17
class IngredientNode (DjangoObjectType ):
@@ -27,7 +26,6 @@ class Meta:
27
26
'category' : ['exact' ],
28
27
'category__name' : ['exact' ],
29
28
}
30
- filter_order_by = ['name' , 'category__name' ]
31
29
32
30
33
31
class Query (AbstractType ):
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class Meta:
9
9
model = Recipe
10
10
interfaces = (Node , )
11
11
filter_fields = ['title' ,'amounts' ]
12
- filter_order_by = [ 'title' ]
12
+
13
13
14
14
class RecipeIngredientNode (DjangoObjectType ):
15
15
@@ -22,7 +22,7 @@ class Meta:
22
22
'recipe' : ['exact' ],
23
23
'recipe__title' : ['icontains' ],
24
24
}
25
- filter_order_by = [ 'ingredient__name' , 'recipe__title' ,]
25
+
26
26
27
27
class Query (AbstractType ):
28
28
recipe = Node .Field (RecipeNode )
You can’t perform that action at this time.
0 commit comments