Micael Levi L. Cavalcante

Results 257 comments of Micael Levi L. Cavalcante

you're problably using an old version. `@nestjs/cli@9` doesn't generate methods with `await` in it ![image](https://user-images.githubusercontent.com/13461315/179968547-ae3fd54a-bcd8-40a6-bd60-4099b7773657.png) https://github.com/nestjs/schematics/blob/6d3a1be4df72725bf16e5765406755b2f521ac82/src/lib/resource/files/ts/__name__.controller.ts#L25-L27 But yeah, using `ParseIntPipe` is better --- try `npx nest` instead of just `nest`

there's nothing sync here, `findOne` returns a promise, thus it's async. I prefer not having `return await` because is redundant (as there's no catch in there)

you can add it to https://github.com/nestjs/awesome-nestjs list at least

could you please fix L11 as well? https://github.com/Daniel-Yonkov/docs.nestjs.com/blob/cc470436fde8189e56a58d30a3d55f4a647af5e5/content/guards.md?#L11 should be ``` > info **Hint** Guards are executed **all** middleware, but **before** any interceptor or pipe. ```

@Daniel-Yonkov my bad, should be: ``` > info **Hint** Guards are executed **after** all middlewares, but **before** any interceptor or pipe. More on this [here](https://docs.nestjs.com/faq/request-lifecycle#summary). ```

you guys could add those resources on https://github.com/nestjs/awesome-nestjs#tutorials

can you add a hint at the end to tell from where `refs` is imported? I didn't find any reference to this utility in the docs yet Like this one...

```ts @Injectable() export class CatController { @ApiExtraModels(BadAppCodeException, BadEmailException) @ApiBadRequestResponse({ schema: { oneOf: refs(BadAppCodeException, BadEmailException), }, }) multipleErrorsResponse() { ... } } ``` some indentation