feat: service.py seems good

This commit is contained in:
Stepan Vladovskiy 2023-10-06 02:46:18 -03:00
parent 183891f637
commit 53bafb6eba

View File

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