resolvers-import-fix

This commit is contained in:
2023-10-05 00:43:07 +03:00
parent 0f6b3613e3
commit 044c21f956
7 changed files with 42 additions and 53 deletions

View File

@@ -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