resolvers-fix

This commit is contained in:
2023-10-05 00:46:16 +03:00
parent 044c21f956
commit a182c2f599
2 changed files with 6 additions and 4 deletions

View File

@@ -1,7 +1,5 @@
from ariadne import ScalarType, QueryType, MutationType
from ariadne import ScalarType, QueryType, MutationType, SubscriptionType
query = QueryType()
mutation = MutationType()
datetime_scalar = ScalarType("DateTime")
@@ -10,4 +8,7 @@ def serialize_datetime(value):
return value.isoformat()
scalars = {"DateTime": datetime_scalar}
query = QueryType()
mutation = MutationType()
subscription = SubscriptionType()
resolvers = [query, mutation, subscription, datetime_scalar]