You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -103,6 +104,13 @@ export class ResolversExplorerService extends BaseExplorerService {
103
104
transform,
104
105
);
105
106
if(resolver.type===SUBSCRIPTION_TYPE){
107
+
if(!wrapper.isDependencyTreeStatic()){
108
+
// Note: We don't throw an exception here for backward
109
+
// compatibility reasons.
110
+
this.logger.error(
111
+
`"${wrapper.metatype.name}" resolver is request or transient-scoped. Resolvers that register subscriptions with the "@Subscription()" decorator must be static (singleton).`,
112
+
);
113
+
}
106
114
constsubscriptionOptions=Reflect.getMetadata(
107
115
SUBSCRIPTION_OPTIONS_METADATA,
108
116
instance[resolver.methodName],
@@ -299,7 +307,7 @@ export class ResolversExplorerService extends BaseExplorerService {
0 commit comments