feat: @read about keys

This commit is contained in:
Stepan Vladovskiy 2023-10-06 06:14:24 -03:00
parent fada9a289a
commit d1366d0b88

View File

@ -13,11 +13,10 @@ query = QueryType()
@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}
print("Inside the _service resolver")
# For now, return a placeholder SDL.
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
return {"sdl": sdl}
mutation = MutationType()
resolvers = [query, mutation, datetime_scalar]