feat: @read about keys
This commit is contained in:
parent
fada9a289a
commit
d1366d0b88
|
@ -13,11 +13,10 @@ query = QueryType()
|
||||||
|
|
||||||
@query.field("_service")
|
@query.field("_service")
|
||||||
def resolve_service(*_):
|
def resolve_service(*_):
|
||||||
# Load the full SDL from your SDL file
|
print("Inside the _service resolver")
|
||||||
with open("schemas/core.graphql", "r") as file:
|
# For now, return a placeholder SDL.
|
||||||
full_sdl = file.read()
|
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
|
||||||
|
return {"sdl": sdl}
|
||||||
return {"sdl": full_sdl}
|
|
||||||
|
|
||||||
mutation = MutationType()
|
mutation = MutationType()
|
||||||
resolvers = [query, mutation, datetime_scalar]
|
resolvers = [query, mutation, datetime_scalar]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user