resolvers-import-fix
This commit is contained in:
13
services/schema.py
Normal file
13
services/schema.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from ariadne import ScalarType, QueryType, MutationType
|
||||
|
||||
query = QueryType()
|
||||
mutation = MutationType()
|
||||
datetime_scalar = ScalarType("DateTime")
|
||||
|
||||
|
||||
@datetime_scalar.serializer
|
||||
def serialize_datetime(value):
|
||||
return value.isoformat()
|
||||
|
||||
|
||||
scalars = {"DateTime": datetime_scalar}
|
Reference in New Issue
Block a user