Skip to content

Commit

Permalink
Update: note on export files
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhghomon committed Sep 18, 2024
1 parent 8478075 commit 8f9495e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content/doc-surrealql/statements/update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,7 @@ UPDATE person
WHERE ->knows->person->(knows WHERE influencer = true)
TIMEOUT 5s;
```

## UPDATE inside database exports

As `UPDATE` before version 2.0.0 used to create a specified record ID if it did not exist, it was used in the `.surql` files generated by the [`surreal export`](/docs/surrealdb/cli/export) command to export existing records in a database. As of version 2.0.0, the [`INSERT`](/docs/surrealql/statements/insert) statement is used instead.

0 comments on commit 8f9495e

Please sign in to comment.