Skip to content

Commit

Permalink
Fix an incomplete sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhghomon committed Jan 3, 2025
1 parent b339f30 commit fcd1300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/doc-surrealql/statements/delete.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ DELETE person:tobie->bought WHERE out=product:iphone;

While soft deletions do not exist natively in SurrealDB, they can be simulated by [defining an event](/docs/surrealql/statements/define/event) that reacts whenever a deletion occurs.

The following example archives the data of a deleted record in another table so that it is
The following example archives the data of a deleted record in another table. This can be combined with [fewer permissions for the new table](/docs/surrealql/statements/define/table#defining-permissions) so that it can be accessed only by [system users](/docs/surrealql/statements/define/user) and not [record users](/docs/surrealql/statements/define/access/record).

```surql
DEFINE EVENT archive_person ON TABLE person WHEN $event = "DELETE" THEN {
Expand Down

0 comments on commit fcd1300

Please sign in to comment.