Skip to content

Commit efe0182

Browse files
committed
Allow to use input_object_one_of:true to use isOneOf introspection option with the cli
1 parent ab7bab2 commit efe0182

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

gql/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ def get_introspection_args(args: Namespace) -> Dict:
430430
"directive_is_repeatable",
431431
"schema_description",
432432
"input_value_deprecation",
433+
"input_object_one_of",
433434
]
434435

435436
if args.schema_download is not None:

tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ def test_cli_parse_schema_download(parser):
407407
"specified_by_url:True",
408408
"schema_description:true",
409409
"directive_is_repeatable:true",
410+
"input_object_one_of:true",
410411
"--print-schema",
411412
]
412413
)
@@ -419,6 +420,7 @@ def test_cli_parse_schema_download(parser):
419420
"specified_by_url": True,
420421
"schema_description": True,
421422
"directive_is_repeatable": True,
423+
"input_object_one_of": True,
422424
}
423425

424426
assert introspection_args == expected_args

0 commit comments

Comments
 (0)