diff --git a/services/schema.py b/services/schema.py index 8bd983e..09060ae 100644 --- a/services/schema.py +++ b/services/schema.py @@ -2,4 +2,15 @@ from ariadne import QueryType, MutationType query = QueryType() mutation = MutationType() + +# duffok was here 2023-12-1 +# This is a query resolver for Apollo Federation +@query.field("_service") +def resolve_service(*_): + # Load the full SDL from your SDL file + with open("inbox.graphql", "r") as file: + full_sdl = file.read() + + return {"sdl": full_sdl} + resolvers = [query, mutation] diff --git a/settings.py b/settings.py index 451aad0..97dad6d 100644 --- a/settings.py +++ b/settings.py @@ -2,8 +2,8 @@ from os import environ PORT = 80 REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1" -API_BASE = environ.get("API_BASE") or "" -AUTH_URL = environ.get("AUTH_URL") or "" +API_BASE = environ.get("API_BASE") or "https://v2.discours.io/" +AUTH_URL = environ.get("AUTH_URL") or "https://v2.discours.io/" MODE = environ.get("MODE") or "production" SENTRY_DSN = environ.get("SENTRY_DSN") DEV_SERVER_PID_FILE_NAME = "dev-server.pid"