core/services/schema.py
Untone 4b85b602c2
Some checks failed
deploy / deploy (push) Failing after 1m50s
community-fix-2
2023-11-23 00:12:23 +03:00

25 lines
544 B
Python

from ariadne import QueryType, MutationType # , ScalarType
# datetime_scalar = ScalarType("DateTime")
query = QueryType()
mutation = MutationType()
# @datetime_scalar.serializer
# def serialize_datetime(value):
# return value.isoformat()
# NOTE: was used by studio
# @query.field("_service")
# def resolve_service(*_):
# # Load the full SDL from your SDL file
# with open("schemas/core.graphql", "r") as file:
# full_sdl = file.read()
#
# return {"sdl": full_sdl}
resolvers = [query, mutation] # , datetime_scalar]