Compare commits
2 Commits
1a19264bb0
...
4500ac1d9e
Author | SHA1 | Date | |
---|---|---|---|
4500ac1d9e | |||
2338eb1fe4 |
@@ -1,3 +1,9 @@
|
|||||||
|
# duffok 2023-12-01
|
||||||
|
# add sdl to _Service
|
||||||
|
type _Service {
|
||||||
|
sdl: String
|
||||||
|
}
|
||||||
|
|
||||||
enum MessageStatus {
|
enum MessageStatus {
|
||||||
NEW
|
NEW
|
||||||
UPDATED
|
UPDATED
|
||||||
|
@@ -2,4 +2,15 @@ from ariadne import QueryType, MutationType
|
|||||||
|
|
||||||
query = QueryType()
|
query = QueryType()
|
||||||
mutation = MutationType()
|
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]
|
resolvers = [query, mutation]
|
||||||
|
@@ -2,8 +2,8 @@ from os import environ
|
|||||||
|
|
||||||
PORT = 80
|
PORT = 80
|
||||||
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"
|
REDIS_URL = environ.get("REDIS_URL") or "redis://127.0.0.1"
|
||||||
API_BASE = environ.get("API_BASE") or ""
|
API_BASE = environ.get("API_BASE") or "https://v2.discours.io/"
|
||||||
AUTH_URL = environ.get("AUTH_URL") or ""
|
AUTH_URL = environ.get("AUTH_URL") or "https://v2.discours.io/"
|
||||||
MODE = environ.get("MODE") or "production"
|
MODE = environ.get("MODE") or "production"
|
||||||
SENTRY_DSN = environ.get("SENTRY_DSN")
|
SENTRY_DSN = environ.get("SENTRY_DSN")
|
||||||
DEV_SERVER_PID_FILE_NAME = "dev-server.pid"
|
DEV_SERVER_PID_FILE_NAME = "dev-server.pid"
|
||||||
|
Reference in New Issue
Block a user