core/services/schema.py
Untone a6c5243c06
All checks were successful
deploy / deploy (push) Successful in 1m23s
viewed-service-fixes
2023-12-17 23:30:20 +03:00

24 lines
543 B
Python

from ariadne import MutationType, QueryType # , 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]