docs: fix deleteCascade typo (#9744)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-10-24 14:03:46 +03:00
1 parent 04cec64fa1
commit 5a1b6f0810
1 file changed
+2 -2
@@ -122,7 +122,7 @@ In this example, a record of `product` can be linked to more than one record of
## Set Delete Cascades on Link ## Set Delete Cascades on Link
To enable delete cascade on a link so that when a record is deleted, its linked records are also deleted, pass the `deleteCascades` property in the object passed to `defineLink`. To enable delete cascade on a link so that when a record is deleted, its linked records are also deleted, pass the `deleteCascade` property in the object passed to `defineLink`.
For example: For example:
@@ -135,7 +135,7 @@ export default defineLink(
ProductModule.linkable.product, ProductModule.linkable.product,
{ {
linkable: HelloModule.linkable.myCustom, linkable: HelloModule.linkable.myCustom,
deleteCascades: true, deleteCascade: true,
} }
) )
``` ```