feat: resolver with parent, args, context, info, and debug

This commit is contained in:
Stepan Vladovskiy 2023-10-06 02:22:43 -03:00
parent 2b4e610ba4
commit 183891f637

View File

@ -1,4 +1,10 @@
def resolve_service(*_):
def resolve_service(parent, args, context, info):
# For debugging purposes
print("Resolver resolve_service called")
# For now, return a placeholder SDL.
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
return {"sdl": sdl}
result = {"sdl": sdl}
print(f"Returning from resolve_service: {result}")
return result