File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
packages/graphql/lib/services Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -279,24 +279,24 @@ export class ResolversExplorerService extends BaseExplorerService {
279
279
} ;
280
280
}
281
281
282
- mapCtors ( wrapper : InstanceWrapper ) : Function [ ] {
283
- const { instance } = wrapper ;
284
- if ( ! instance ) {
285
- return undefined ;
286
- }
287
-
288
- return instance . constructor ;
289
- }
290
-
291
282
getAllCtors ( ) : Function [ ] {
292
283
const modules = this . getModules (
293
284
this . modulesContainer ,
294
285
this . gqlOptions . include || [ ] ,
295
286
) ;
296
- const resolvers = this . flatMap ( modules , this . mapCtors ) . filter ( Boolean ) ;
287
+ const resolvers = this . flatMap ( modules , this . mapToCtor ) . filter ( Boolean ) ;
297
288
return resolvers ;
298
289
}
299
290
291
+ private mapToCtor ( wrapper : InstanceWrapper ) : Function [ ] {
292
+ const { instance } = wrapper ;
293
+ if ( ! instance ) {
294
+ return undefined ;
295
+ }
296
+
297
+ return instance . constructor ;
298
+ }
299
+
300
300
private registerContextProvider < T = any > ( request : T , contextId : ContextId ) {
301
301
const coreModuleArray = [ ...this . modulesContainer . entries ( ) ]
302
302
. filter (
You can’t perform that action at this time.
0 commit comments