Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 인접행렬
- nestjs
- css
- logger
- REST API
- winston
- 변수
- 인접리스트
- MySQL
- Spring
- queue
- 프로그래머스
- 코딩테스트
- Deep Dive
- JWT
- node.js
- javascript
- LifeCycle
- GraphQL
- Interceptor
- java
- typescript
- TIL
- dfs
- bean
- 탐욕법
- 자료구조
- 알고리즘
- html
- OOP
Archives
- Today
- Total
목록pipe (1)
처음부터 차근차근
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/curSxa/btsATEaUFxq/gE0NIvqJWe7135iKcfaVKK/img.png)
Pipe Pipe는 두 가지 역할을 합니다. transformation: transform input data to the desired form (e.g., from string to integer) validation: evaluate input data and if valid, simply pass it through unchanged; otherwise, throw an exception 파이프는 Route handler가 동작되기 전에 실행되며, route handler의 인자들이 도착하기 전에 작업을 처리합니다. Nest의 Pipe를 통해 인자들의 유효성 검사를 진행하거나, 인수를 변환하는 작업을 진행합니다. 주의할 점은 파이프는 Exception 영역 내부에서 실행됩니다. 만약 유효성 검사를..
FrameWork/NestJS
2023. 11. 28. 12:03