We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faeb8a9 commit 3db6b3aCopy full SHA for 3db6b3a
graphql-api-generator/generator.py
@@ -269,7 +269,8 @@ def datetime_control(schema):
269
if not is_scalar_type(schema.type_map['DateTime']):
270
raise Exception('DateTime exists but is not scalar type: ' + schema.type_map['DateTime'])
271
else:
272
- schema.type_map['DateTime'] = GraphQLScalarType('DateTime')
+ # ast_node definition ensures that DateTime appears as a user-defined scalar
273
+ schema.type_map['DateTime'] = GraphQLScalarType('DateTime', ast_node=ScalarTypeDefinitionNode())
274
275
raise Exception('DateTime could not be added as scalar!')
276
0 commit comments