Skip to content

Commit 45aa4b7

Browse files
committed
disable generation of filter argument for lists of union types (closes issue #113)
1 parent f32c5b2 commit 45aa4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql-api-generator/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def add_object_type_filters(schema: GraphQLSchema):
650650
continue
651651

652652
named_type = get_named_type(field.type)
653-
if is_enum_or_scalar(named_type):
653+
if is_enum_or_scalar(named_type) or is_union_type(named_type):
654654
continue
655655

656656
if field_name.startswith('_incoming') or field_name.startswith('_outgoing'):

0 commit comments

Comments
 (0)