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):
|
||||
# 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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user