docs: update cascade options (#7140)

This commit is contained in:
Gergo Tolnai 2021-01-11 13:06:55 +01:00 committed by GitHub
parent 28368917a3
commit cc044a90c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ Also, they provide a less explicit way of saving new objects into the database.
### Cascade Options
The `cascade` option can be set as a `boolean` or an array of cascade options `("insert", "update")[]`.
The `cascade` option can be set as a `boolean` or an array of cascade options `("insert" | "update" | "remove" | "soft-remove" | "recover")[]`.
It will default to `false`, meaning no cascades. Setting `cascade: true` will enable full cascades. You can also specify options by providing an array.