Skip to content

Commit 431b0f5

Browse files
authored
fix: enum values lost extensions when sorting schemas (#245)
1 parent 4b0ada2 commit 431b0f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/graphql/utilities/lexicographic_sort_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def sort_named_type(type_: GraphQLNamedType) -> GraphQLNamedType:
146146
val.value,
147147
description=val.description,
148148
deprecation_reason=val.deprecation_reason,
149+
extensions=val.extensions,
149150
ast_node=val.ast_node,
150151
)
151152
for name, val in sorted(type_.values.items())

0 commit comments

Comments
 (0)