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 d549878 commit 64a2c55Copy full SHA for 64a2c55
tests/type/test_definition.py
@@ -1586,6 +1586,20 @@ def rejects_an_input_object_type_with_resolver_constant():
1586
{"f": GraphQLInputField(ScalarType, resolve={})}, # type: ignore
1587
)
1588
1589
+ def deprecation_reason_is_preserved_on_fields():
1590
+ input_obj_type = GraphQLInputObjectType(
1591
+ "SomeInputObject",
1592
+ {
1593
+ "deprecatedField": GraphQLInputField(
1594
+ ScalarType, deprecation_reason="not used anymore"
1595
+ )
1596
+ },
1597
1598
+ assert (
1599
+ input_obj_type.fields["deprecatedField"].deprecation_reason
1600
+ == "not used anymore"
1601
1602
+
1603
1604
def describe_type_system_arguments():
1605
def accepts_an_argument_with_a_description():
0 commit comments