feat: wildcard to resolvers , and find that load_resolvers are not added
This commit is contained in:
parent
10db0b45ef
commit
49a825274a
2
main.py
2
main.py
|
@ -9,7 +9,7 @@ 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
|
||||
schema = make_executable_schema(load_schema_from_path("inbox.graphql"), *resolvers) # type: ignore
|
||||
|
||||
|
||||
async def start_up():
|
||||
|
|
|
@ -10,4 +10,4 @@ def serialize_datetime(value):
|
|||
|
||||
query = QueryType()
|
||||
mutation = MutationType()
|
||||
resolvers = [query, mutation, datetime_scalar, ]
|
||||
resolvers = [query, mutation, datetime_scalar, service_resolvers]
|
||||
|
|
Loading…
Reference in New Issue
Block a user