@@ -195,8 +195,6 @@ def convert_sqlalchemy_type(type, column, registry=None):
195
195
)
196
196
197
197
198
- @convert_sqlalchemy_type .register (types .Date )
199
- @convert_sqlalchemy_type .register (types .Time )
200
198
@convert_sqlalchemy_type .register (types .String )
201
199
@convert_sqlalchemy_type .register (types .Text )
202
200
@convert_sqlalchemy_type .register (types .Unicode )
@@ -215,6 +213,18 @@ def convert_column_to_datetime(type, column, registry=None):
215
213
return DateTime
216
214
217
215
216
+ @convert_sqlalchemy_type .register (types .Time )
217
+ def convert_column_to_datetime (type , column , registry = None ):
218
+ from graphene .types .datetime import Time
219
+ return Time
220
+
221
+
222
+ @convert_sqlalchemy_type .register (types .Date )
223
+ def convert_column_to_datetime (type , column , registry = None ):
224
+ from graphene .types .datetime import Date
225
+ return Date
226
+
227
+
218
228
@convert_sqlalchemy_type .register (types .SmallInteger )
219
229
@convert_sqlalchemy_type .register (types .Integer )
220
230
def convert_column_to_int_or_id (type , column , registry = None ):
@@ -283,6 +293,7 @@ def convert_json_type_to_string(type, column, registry=None):
283
293
def convert_variant_to_impl_type (type , column , registry = None ):
284
294
return convert_sqlalchemy_type (type .impl , column , registry = registry )
285
295
296
+
286
297
@singledispatchbymatchfunction
287
298
def convert_sqlalchemy_hybrid_property_type (arg : Any ):
288
299
existing_graphql_type = get_global_registry ().get_type_for_model (arg )
0 commit comments