Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private async boot(): Promise {
try {
// load schema
const gQlSdlPattern = this.ENVIRONMENT.path + this.graphQlConfig.schemaPattern;
this.gQlSdl = await helper.loadFilesByGlobPattern(gQlSdlPattern);
// check if any files were loaded
if (this.gQlSdl.length === 0) {
this.logger.warn('boot.no.sdl.files.found');
return;
}
// Combine all Schemas to a big one and add extensions from other modules
const gQlSdlCombined = this.gQlSdl.concat(this.gQlSdlExtensions.slice()).join('\n');
this.gQlAst = gQLHelper.helper.parseGraphQlSchema(gQlSdlCombined);
this.dbMeta = parseGQlAstToDbMeta(this.gQlAst);
// load permissions and expressions and generate views and put them into schemas
try {