From e1049d5f28d8863d79360380029a561e70467fab Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 19 Dec 2022 15:21:03 -0600 Subject: graphql: T4887: interpret all boolean options as nullable --- src/services/api/graphql/libs/op_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/api/graphql/libs/op_mode.py b/src/services/api/graphql/libs/op_mode.py index 6939ed5d6..211f8ce19 100644 --- a/src/services/api/graphql/libs/op_mode.py +++ b/src/services/api/graphql/libs/op_mode.py @@ -84,7 +84,7 @@ def map_type_name(type_name: type, optional: bool = False) -> str: if type_name == int: return 'Int!' if not optional else 'Int = null' if type_name == bool: - return 'Boolean!' if not optional else 'Boolean = false' + return 'Boolean = false' if typing.get_origin(type_name) == list: if not optional: return f'[{map_type_name(typing.get_args(type_name)[0])}]!' -- cgit v1.2.3