schema-move-test
All checks were successful
Deploy to core / deploy (push) Successful in 1m54s

This commit is contained in:
Untone 2024-02-19 11:20:13 +03:00
parent 2464b91f9b
commit 0301d8041d
2 changed files with 4 additions and 5 deletions

View File

@ -2,23 +2,19 @@ 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 starlette.routing import Route
from services.rediscache import redis
from services.schema import resolvers
from services.schema import schema
from services.search import search_service
from services.sentry import start_sentry
from services.viewed import ViewedStorage
from services.webhook import WebhookEndpoint
from settings import DEV_SERVER_PID_FILE_NAME, MODE
import_module('resolvers')
schema = make_executable_schema(load_schema_from_path('schema/'), resolvers)
async def start():
if MODE == 'development':

View File

@ -1,5 +1,8 @@
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)