Skip to content

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

Fix types import and GraphQL schema module

Marcin Gębala79d74f0f682c
diff --git a/saleor/graphql/query.py b/saleor/graphql/query.py
index 57f40c8492..c05707ae59 100644
--- a/saleor/graphql/query.py
+++ b/saleor/graphql/query.py
@@ -5,6 +5,7 @@ from graphene import relay
from graphene_django.debug import DjangoDebug
from ..product.models import Category, Product
+from .product_schema import CategoryType, ProductType, ProductVariantType
class ProductQuery(graphene.AbstractType):
diff --git a/saleor/settings.py b/saleor/settings.py
index 9460bbc257..5b8d267d5e 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -353,7 +353,7 @@ else:
GRAPHENE = {
- 'SCHEMA': 'saleor.graphql.schema.schema',
+ 'SCHEMA': 'saleor.graphql.query.schema',
'MIDDLEWARE': [
'graphene_django.debug.DjangoDebugMiddleware'
]