This is a NestJS Interceptor to transform the keys of API results (snake-cased or with spaces) to camelCase.
$ npm i nestjs-result2camelcase
In your main.ts:
app.useGlobalInterceptors(new ResultToCamelcaseInterceptor());
In your Controller you can use UseInterceptors decorator:
@UseInterceptors(new ResultToCamelcaseInterceptor())