Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennytian/hello-nest
https://github.com/kennytian/hello-nest
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kennytian/hello-nest
- Owner: Kennytian
- Created: 2019-10-07T05:25:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T23:50:12.000Z (over 1 year ago)
- Last Synced: 2024-11-08T21:09:31.834Z (2 months ago)
- Language: TypeScript
- Size: 1.05 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Nest
![CI](https://github.com/Kennytian/hello-nest/workflows/CI/badge.svg?branch=master)
#### JWT
`@nestjs/jwt` + `@nestjs/jwt` + `JwtGuard` + `UseGuards`
#### class-transformer
`@Exclude()` + `@UseInterceptors(ClassSerializerInterceptor)` + `@Transform((value) => value.toString(), { toPlainOnly: true })`
处理隐藏 password 字段,将 id(_bsontype)转换为字符串