diff --git a/examples/cookbook-plain/cookbook/ingredients/schema.py b/examples/cookbook-plain/cookbook/ingredients/schema.py index 1a54c4b..24a5e95 100644 --- a/examples/cookbook-plain/cookbook/ingredients/schema.py +++ b/examples/cookbook-plain/cookbook/ingredients/schema.py @@ -7,11 +7,13 @@ from .models import Category, Ingredient class CategoryType(DjangoObjectType): class Meta: model = Category + fields = "__all__" class IngredientType(DjangoObjectType): class Meta: model = Ingredient + fields = "__all__" class Query(object): diff --git a/examples/cookbook-plain/cookbook/recipes/schema.py b/examples/cookbook-plain/cookbook/recipes/schema.py index b029570..aa7fd2d 100644 --- a/examples/cookbook-plain/cookbook/recipes/schema.py +++ b/examples/cookbook-plain/cookbook/recipes/schema.py @@ -7,11 +7,13 @@ from .models import Recipe, RecipeIngredient class RecipeType(DjangoObjectType): class Meta: model = Recipe + fields = "__all__" class RecipeIngredientType(DjangoObjectType): class Meta: model = RecipeIngredient + fields = "__all__" class Query(object): diff --git a/examples/cookbook/cookbook/ingredients/schema.py b/examples/cookbook/cookbook/ingredients/schema.py index 5e5da80..43b6118 100644 --- a/examples/cookbook/cookbook/ingredients/schema.py +++ b/examples/cookbook/cookbook/ingredients/schema.py @@ -10,6 +10,7 @@ class CategoryNode(DjangoObjectType): class Meta: model = Category interfaces = (Node,) + fields = "__all__" filter_fields = ["name", "ingredients"] @@ -18,6 +19,7 @@ class IngredientNode(DjangoObjectType): model = Ingredient # Allow for some more advanced filtering here interfaces = (Node,) + fields = "__all__" filter_fields = { "name": ["exact", "icontains", "istartswith"], "notes": ["exact", "icontains"], diff --git a/examples/cookbook/cookbook/recipes/schema.py b/examples/cookbook/cookbook/recipes/schema.py index fbbedd8..c7298aa 100644 --- a/examples/cookbook/cookbook/recipes/schema.py +++ b/examples/cookbook/cookbook/recipes/schema.py @@ -8,6 +8,7 @@ class RecipeNode(DjangoObjectType): class Meta: model = Recipe interfaces = (Node,) + fields = "__all__" filter_fields = ["title", "amounts"] @@ -16,6 +17,7 @@ class RecipeIngredientNode(DjangoObjectType): model = RecipeIngredient # Allow for some more advanced filtering here interfaces = (Node,) + fields = "__all__" filter_fields = { "ingredient__name": ["exact", "icontains", "istartswith"], "recipe": ["exact"], diff --git a/examples/starwars/schema.py b/examples/starwars/schema.py index fb22840..4bc26e9 100644 --- a/examples/starwars/schema.py +++ b/examples/starwars/schema.py @@ -12,6 +12,7 @@ class Ship(DjangoObjectType): class Meta: model = ShipModel interfaces = (relay.Node,) + fields = "__all__" @classmethod def get_node(cls, info, id): @@ -22,12 +23,14 @@ class Ship(DjangoObjectType): class Character(DjangoObjectType): class Meta: model = CharacterModel + fields = "__all__" class Faction(DjangoObjectType): class Meta: model = FactionModel interfaces = (relay.Node,) + fields = "__all__" @classmethod def get_node(cls, info, id):