Skip to content

Commit 0697403

Browse files
committed
docs(rest-crud): update
1 parent 61bba02 commit 0697403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ book instanceof Book; // true
424424
book.name === "name"; // true
425425
```
426426

427-
By default `RestGenericSerializer` requires the entity constructor to take no parameters, because it's impossible to know what argument to pass. An error will be thrown if `entityClass.length !== 0`. But we can customize how new entities are instantiated by overriding its `createEntity()` method where the purified payload will be passed as a parameter:
427+
By default `RestGenericSerializer` use DeepKit deserialization to instantiate new entities. We can customize how new entities are instantiated by overriding its `createEntity()` method where the purified payload will be passed as a parameter:
428428

429429
```ts
430430
class BookSerializer extends RestGenericSerializer<Book> {

0 commit comments

Comments
 (0)