Skip to content

Commit e1250c0

Browse files
authored
add __typename to unions (#765)
1 parent 15f608f commit e1250c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/graphql_network_protocol/src/process_type_system_definition.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl GraphQLObjectDefinitionType {
496496
pub fn has_typename_field(&self) -> bool {
497497
match self {
498498
GraphQLObjectDefinitionType::InputObject => false,
499-
GraphQLObjectDefinitionType::Union => false,
499+
GraphQLObjectDefinitionType::Union => true,
500500
GraphQLObjectDefinitionType::Object => true,
501501
GraphQLObjectDefinitionType::Interface => true,
502502
}

0 commit comments

Comments
 (0)