You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution: According to the docs pipes are annotated with @Injectable and implement a transform method. So we can use that to hook into the framework. There are built-in pipes provided by nest and users can also implement custom pipes. This approach should work for both.
Limitation: Although the nest docs say that pipes should always have an @Injectable decorator, pipes work just fine without it unless it has dependencies on other services.
The text was updated successfully, but these errors were encountered:
https://docs.nestjs.com/pipes
Solution: According to the docs pipes are annotated with
@Injectable
and implement a transform method. So we can use that to hook into the framework. There are built-in pipes provided by nest and users can also implement custom pipes. This approach should work for both.Limitation: Although the nest docs say that pipes should always have an @Injectable decorator, pipes work just fine without it unless it has dependencies on other services.
The text was updated successfully, but these errors were encountered: