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
To disable `class-transformer` on a per-controller or per-route basis, use the `transformRequest` and `transformResponse` options on your controller and route decorators:
You can use any existing express / koa middleware, or create your own.
@@ -1219,7 +1234,7 @@ If its a class - then instance of this class will be created.
1219
1234
This technique works with `@Body`, `@Param`, `@QueryParam`, `@BodyParam`, and other decorators.
1220
1235
Learn more about class-transformer and how to handle more complex object constructions [here][4].
1221
1236
This behaviour is enabled by default.
1222
-
If you want to disable it simply pass `classTransformer: false` to createExpressServer method.
1237
+
If you want to disable it simply pass `classTransformer: false` to createExpressServer method. Alternatively you can disable transforming for [individual controllers or routes](#selectively-disable-requestresponse-transforming).
0 commit comments