Add Subscription to parent type resolver action fix problem when trying to authenticate a graphql subscription Co-authored-by: danieldflrss <danieldflrss@gmail.com>
@@ -175,6 +175,6 @@ export class AuthGuard implements CanActivate {
return false;
}
const parentType = info?.parentType?.name;
- return parentType !== 'Query' && parentType !== 'Mutation';
+ return parentType !== 'Query' && parentType !== 'Mutation' && parentType !== 'Subscription';