Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
catch(exception: CatchableException, host: ArgumentsHost) {
const ctx = GqlArgumentsHost.create(host);
const info = ctx.getInfo();
const rawArgs = JSON.stringify(ctx.getArgs());
this.log(exception, info, rawArgs);
return this.transformException(exception);
}
catch (exception: any, host: ArgumentsHost) {
const gqlHost = GqlArgumentsHost.create(host)
const { req, res } = gqlHost.getContext()
return exception
}
}