feat: service.py seems good
This commit is contained in:
parent
183891f637
commit
53bafb6eba
|
@ -1,10 +1,10 @@
|
||||||
def resolve_service(parent, args, context, info):
|
from ariadne import ObjectType
|
||||||
# For debugging purposes
|
|
||||||
print("Resolver resolve_service called")
|
|
||||||
|
|
||||||
|
query = ObjectType("Query")
|
||||||
|
|
||||||
|
# Define resolver function for _service field
|
||||||
|
@query.field("_service")
|
||||||
|
def resolve_service(*_):
|
||||||
# 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