E.g. should I put
@UseGuards(GqlUserAuthGuard) // This?
@ResolveReference()
async resolveReference(reference: { __typename: string; id: string }) {
if (reference.__typename === 'User') {
return this.usersService.findOneById(reference.id);
}
return null;
}
Feel like not because it's coming from another mutation/query... but wanted to make sure