Skip to content

Commit 86940de

Browse files
author
Carl Evans
committed
Make mapToCtor private
1 parent 17bd3cc commit 86940de

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/graphql/lib/services/resolvers-explorer.service.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -279,24 +279,24 @@ export class ResolversExplorerService extends BaseExplorerService {
279279
};
280280
}
281281

282-
mapCtors(wrapper: InstanceWrapper): Function[] {
283-
const { instance } = wrapper;
284-
if (!instance) {
285-
return undefined;
286-
}
287-
288-
return instance.constructor;
289-
}
290-
291282
getAllCtors(): Function[] {
292283
const modules = this.getModules(
293284
this.modulesContainer,
294285
this.gqlOptions.include || [],
295286
);
296-
const resolvers = this.flatMap(modules, this.mapCtors).filter(Boolean);
287+
const resolvers = this.flatMap(modules, this.mapToCtor).filter(Boolean);
297288
return resolvers;
298289
}
299290

291+
private mapToCtor(wrapper: InstanceWrapper): Function[] {
292+
const { instance } = wrapper;
293+
if (!instance) {
294+
return undefined;
295+
}
296+
297+
return instance.constructor;
298+
}
299+
300300
private registerContextProvider<T = any>(request: T, contextId: ContextId) {
301301
const coreModuleArray = [...this.modulesContainer.entries()]
302302
.filter(

0 commit comments

Comments
 (0)