Skip to content

Commit

Permalink
Fixing placeholders for interfaces and union types
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdsupremacist committed Jan 20, 2021
1 parent 1c17d95 commit cecc20f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ extension Schema.GraphQLType.Field.TypeReference {
return type.placeholder(with: component, in: api)
}
case .concrete(let definition):
if case .object = definition.kind, case .object(let object) = component, let typeName = definition.name {
if definition.kind.isFragment, case .object(let object) = component, let typeName = definition.name {
return .dictionary(object.placeHolderArguments(typeName: typeName, in: api))
}

Expand Down

0 comments on commit cecc20f

Please sign in to comment.