feat: add to SDL full Query Mutation schema
This commit is contained in:
parent
d9f47183c8
commit
c5ea08f939
|
@ -13,10 +13,11 @@ query = QueryType()
|
||||||
|
|
||||||
@query.field("_service")
|
@query.field("_service")
|
||||||
def resolve_service(*_):
|
def resolve_service(*_):
|
||||||
print("Inside the _service resolver")
|
# Load the full SDL from your SDL file
|
||||||
# For now, return a placeholder SDL.
|
with open("inbox.graphql", "r") as file:
|
||||||
sdl = "type Query { _service: _Service } type _Service { sdl: String }"
|
full_sdl = file.read()
|
||||||
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