resolvers-import-fix
This commit is contained in:
3
main.py
3
main.py
@@ -1,12 +1,13 @@
|
||||
import os
|
||||
from importlib import import_module
|
||||
from os.path import exists
|
||||
from ariadne import load_schema_from_path, make_executable_schema
|
||||
from ariadne.asgi import GraphQL
|
||||
from starlette.applications import Starlette
|
||||
from services.redis import redis
|
||||
from resolvers import resolvers
|
||||
from settings import DEV_SERVER_PID_FILE_NAME, SENTRY_DSN, MODE
|
||||
|
||||
import_module("resolvers")
|
||||
schema = make_executable_schema(load_schema_from_path("inbox.graphql"), resolvers) # type: ignore
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user