feat: resolver with parent, args, context, info, and debug
This commit is contained in:
parent
2b4e610ba4
commit
183891f637
|
@ -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.
|
# For now, return a placeholder SDL.
|
||||||
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
|
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
|
||||||
return {"sdl": sdl}
|
|
||||||
|
result = {"sdl": sdl}
|
||||||
|
print(f"Returning from resolve_service: {result}")
|
||||||
|
return result
|
||||||
|
|
Loading…
Reference in New Issue
Block a user