@@ -34,6 +34,7 @@ def get_introspection_query(
3434 directive_is_repeatable : bool = False ,
3535 schema_description : bool = False ,
3636 input_value_deprecation : bool = False ,
37+ input_object_one_of : bool = False ,
3738) -> str :
3839 """Get a query for introspection.
3940
@@ -45,6 +46,7 @@ def get_introspection_query(
4546 maybe_specified_by_url = "specifiedByURL" if specified_by_url else ""
4647 maybe_directive_is_repeatable = "isRepeatable" if directive_is_repeatable else ""
4748 maybe_schema_description = maybe_description if schema_description else ""
49+ maybe_input_object_one_of = "isOneOf" if input_object_one_of else ""
4850
4951 def input_deprecation (string : str ) -> Optional [str ]:
5052 return string if input_value_deprecation else ""
@@ -77,6 +79,7 @@ def input_deprecation(string: str) -> Optional[str]:
7779 name
7880 { maybe_description }
7981 { maybe_specified_by_url }
82+ { maybe_input_object_one_of }
8083 fields(includeDeprecated: true) {{
8184 name
8285 { maybe_description }
@@ -243,6 +246,7 @@ class IntrospectionEnumType(WithName):
243246class IntrospectionInputObjectType (WithName ):
244247 kind : Literal ["input_object" ]
245248 inputFields : List [IntrospectionInputValue ]
249+ isOneOf : bool
246250
247251
248252IntrospectionType = Union [
@@ -254,7 +258,6 @@ class IntrospectionInputObjectType(WithName):
254258 IntrospectionInputObjectType ,
255259]
256260
257-
258261IntrospectionOutputType = Union [
259262 IntrospectionScalarType ,
260263 IntrospectionObjectType ,
@@ -263,7 +266,6 @@ class IntrospectionInputObjectType(WithName):
263266 IntrospectionEnumType ,
264267]
265268
266-
267269IntrospectionInputType = Union [
268270 IntrospectionScalarType , IntrospectionEnumType , IntrospectionInputObjectType
269271]
0 commit comments