core/base/resolvers.py
Ilya Y 889f802429
Feature/notifications (#77)
feature - notifications

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
2023-10-10 09:35:27 +03:00

14 lines
283 B
Python

from ariadne import MutationType, QueryType, ScalarType
datetime_scalar = ScalarType("DateTime")
@datetime_scalar.serializer
def serialize_datetime(value):
return value.isoformat()
query = QueryType()
mutation = MutationType()
resolvers = [query, mutation, datetime_scalar]