@@ -11,13 +11,14 @@ def serialize_datetime(value):
|
||||
return value.isoformat()
|
||||
|
||||
|
||||
@query.field("_service")
|
||||
def resolve_service(*_):
|
||||
# Load the full SDL from your SDL file
|
||||
with open("schemas/core.graphql", "r") as file:
|
||||
full_sdl = file.read()
|
||||
|
||||
return {"sdl": full_sdl}
|
||||
# NOTE: was used by studio
|
||||
# @query.field("_service")
|
||||
# def resolve_service(*_):
|
||||
# # Load the full SDL from your SDL file
|
||||
# with open("schemas/core.graphql", "r") as file:
|
||||
# full_sdl = file.read()
|
||||
#
|
||||
# return {"sdl": full_sdl}
|
||||
|
||||
|
||||
resolvers = [query, mutation, datetime_scalar]
|
||||
|
Reference in New Issue
Block a user