Skip to content

Commit

Permalink
Merge pull request #1937 from marcjulian/patch-1
Browse files Browse the repository at this point in the history
docs(serialization): update transform usage
  • Loading branch information
kamilmysliwiec committed Jun 10, 2021
2 parents f036211 + 3f85af8 commit a06e646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/techniques/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ get fullName(): string {
You can perform additional data transformation using the `@Transform()` decorator. For example, the following construct returns the name property of the `RoleEntity` instead of returning the whole object.

```typescript
@Transform(role => role.name)
@Transform(({ value }) => value.name)
role: RoleEntity;
```

Expand Down

0 comments on commit a06e646

Please sign in to comment.