Skip to content

Commit da3c06f

Browse files
authored
Merge pull request #68 from akira-dev/master
inline fragment bug fix: use more precise type comparaison than native python object equality
2 parents 7e1e8f7 + bbf0a2a commit da3c06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql/execution/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def does_fragment_condition_match(ctx, fragment, type_):
228228
return True
229229

230230
conditional_type = type_from_ast(ctx.schema, type_condition_ast)
231-
if conditional_type == type_:
231+
if conditional_type.is_same_type(type_):
232232
return True
233233

234234
if isinstance(conditional_type, (GraphQLInterfaceType, GraphQLUnionType)):

0 commit comments

Comments
 (0)