feat: wildcard to resolvers , and find that load_resolvers are not added

This commit is contained in:
Stepan Vladovskiy 2023-10-06 03:18:33 -03:00
parent 7f5dd907ed
commit e27b0ae42b

View File

@ -9,7 +9,9 @@ from services.schema 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
combined_resolvers = {**resolvers[0], **service_resolvers} # assuming resolvers is a list with one dictionary as its first item
schema = make_executable_schema(load_schema_from_path("inbox.graphql"), combined_resolvers) # type: ignore
async def start_up():