2023-10-14 15:11:17 +00:00
|
|
|
from ariadne import QueryType, MutationType
|
2023-10-04 21:43:07 +00:00
|
|
|
|
2023-10-06 09:49:22 +00:00
|
|
|
query = QueryType()
|
|
|
|
mutation = MutationType()
|
2023-12-02 01:56:50 +00:00
|
|
|
|
|
|
|
# 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}
|
|
|
|
|
2023-10-14 15:11:17 +00:00
|
|
|
resolvers = [query, mutation]
|