core/services/schema.py

9 lines
265 B
Python
Raw Normal View History

2024-02-19 07:14:14 +00:00
from ariadne import MutationType, QueryType
2024-02-19 08:20:13 +00:00
from ariadne import load_schema_from_path, make_executable_schema
2023-10-06 09:51:07 +00:00
query = QueryType()
mutation = MutationType()
2024-02-19 07:14:14 +00:00
resolvers = [query, mutation]
2024-02-19 08:20:13 +00:00
schema = make_executable_schema(load_schema_from_path('schema/'), resolvers)