We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a033d60 commit 9dffe80Copy full SHA for 9dffe80
lib/apollo-federation/entities_field.rb
@@ -71,7 +71,11 @@ def _entities(representations:)
71
# calls return the same object, it might not have the right type
72
# Right now, apollo-federation just adds a __typename property to the result,
73
# but I don't really like the idea of modifying the resolved object
74
- context[resolved_value] = type
+ if type.kind == GraphQL::TypeKinds::INTERFACE
75
+ context[resolved_value] = context.schema.resolve_type(type, resolved_value, context)
76
+ else
77
+ context[resolved_value] = type
78
+ end
79
resolved_value
80
end
81
0 commit comments