diff --git a/README.md b/README.md index da6209f2..84d5b4ee 100644 --- a/README.md +++ b/README.md @@ -787,9 +787,9 @@ The `@Transform` decorator is given more arguments to let you configure how you | Signature | Example | Description | | ------------------------ | ---------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `@TransformClassToPlain` | `@TransformClassToPlain({ groups: ["user"] })` | Transform the method return with instanceToPlain and expose the properties on the class. | -| `@TransformClassToClass` | `@TransformClassToClass({ groups: ["user"] })` | Transform the method return with instanceToInstance and expose the properties on the class. | -| `@TransformPlainToClass` | `@TransformPlainToClass(User, { groups: ["user"] })` | Transform the method return with plainToInstance and expose the properties on the class. | +| `@TransformInstanceToPlain` | `@TransformInstanceToPlain({ groups: ["user"] })` | Transform the method return with instanceToPlain and expose the properties on the class. | +| `@TransformInstanceToInstance` | `@TransformInstanceToInstance({ groups: ["user"] })` | Transform the method return with instanceToInstance and expose the properties on the class. | +| `@TransformPlainToInstance` | `@TransformPlainToInstance(User, { groups: ["user"] })` | Transform the method return with plainToInstance and expose the properties on the class. | The above decorators accept one optional argument: ClassTransformOptions - The transform options like groups, version, name @@ -814,7 +814,7 @@ class User { } class UserController { - @TransformClassToPlain({ groups: ['user.email'] }) + @TransformInstanceToPlain({ groups: ['user.email'] }) getUser() { const user = new User(); user.firstName = 'Snir';