This commit is contained in:
@@ -5,12 +5,12 @@ 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}
|
||||
# @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]
|
||||
|
Reference in New Issue
Block a user