Skip to content

Commit

Permalink
fix(graphql): resolver decorator should retrieve interface by target
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 6, 2023
1 parent 465c91b commit c2b3b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql/lib/decorators/resolver.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getObjectOrInterfaceTypeNameIfExists(
TypeMetadataStorage.getObjectTypeMetadataByTarget(ctor);
if (!objectMetadata) {
const interfaceMetadata =
TypeMetadataStorage.getInterfacesMetadata(ctor);
TypeMetadataStorage.getInterfaceMetadataByTarget(ctor);
if (!interfaceMetadata) {
return;
}
Expand Down

0 comments on commit c2b3b9a

Please sign in to comment.