schema-main

This commit is contained in:
2024-02-19 11:58:02 +03:00
parent 0301d8041d
commit 680242f1e3
9 changed files with 29 additions and 25 deletions

View File

@@ -1,8 +1,5 @@
from ariadne import MutationType, QueryType
from ariadne import load_schema_from_path, make_executable_schema
query = QueryType()
mutation = MutationType()
resolvers = [query, mutation]
schema = make_executable_schema(load_schema_from_path('schema/'), resolvers)