We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6488c32 commit 4abf52fCopy full SHA for 4abf52f
packages/graphql/lib/services/base-explorer.service.ts
@@ -12,7 +12,18 @@ export class BaseExplorerService {
12
return [...modulesContainer.values()];
13
}
14
const whitelisted = this.includeWhitelisted(modulesContainer, include);
15
- return whitelisted;
+
16
+ const modules = [];
17
+ const toCheck = [...whitelisted];
18
+ while (toCheck.length) {
19
+ const mod = toCheck.pop();
20
+ if (!modules.includes(mod)) {
21
+ modules.push(mod);
22
+ toCheck.push(...mod.imports);
23
+ }
24
25
26
+ return modules;
27
28
29
includeWhitelisted(
0 commit comments