File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def run(schema: GraphQLSchema, config: dict):
52
52
#Avoid some weird config combinations
53
53
config .get ('generation' )['generate_datetime' ] = config .get ('generation' ).get ('generate_datetime' ) or config .get ('generation' ).get ('field_for_creation_date' ) or config .get ('generation' ).get ('field_for_last_update_date' )
54
54
55
+ # TODO: Remove this when we scrap the Date scalar
55
56
# check if Date exists, or should be added
56
57
# If it already exists (in the expected way, we handle it as if we added it
57
58
config .get ('generation' )['generate_date' ] = date_control (schema , config .get ('generation' ).get ('generate_date' ))
@@ -280,6 +281,7 @@ def datetime_control(schema):
280
281
raise Exception ('DateTime could not be added as scalar!' )
281
282
282
283
284
+ # TODO: Remove this when we scrap the Date scalar
283
285
def date_control (schema , config : dict ):
284
286
type_names = set (schema .type_map .keys ())
285
287
if 'Date' in type_names :
Original file line number Diff line number Diff line change @@ -473,18 +473,15 @@ def add_scalar_filters(schema: GraphQLSchema, config: dict):
473
473
' _neq: Boolean ' \
474
474
'} '
475
475
476
- # Date (behaves like a string?)
476
+ # TODO: Scrap this when we remove the Date scalar
477
+ # Date (behaves like a string)
477
478
if config .get ('generation' ).get ('generate_date' ):
478
479
manually_handled_scalars .append ('Date' )
479
480
make += 'input _DateFilter {' \
480
481
' _eq: Date ' \
481
482
' _neq: Date ' \
482
483
' _in: [Date] ' \
483
484
' _nin: [Date] ' \
484
- ' _gt: Date ' \
485
- ' _egt: Date ' \
486
- ' _lt: Date ' \
487
- ' _elt: Date ' \
488
485
'} '
489
486
490
487
# DateTime (behaves like a integer)
You can’t perform that action at this time.
0 commit comments