Skip to content

Commit 7340916

Browse files
authored
fix: Corrected surrelql statement. (#7291)
`DEFINE LOGIN` is incorrect. It should be `DEFINE USER`
1 parent 947191a commit 7340916

File tree

1 file changed

+2
-2
lines changed
  • docs/guides/databases/surrealdb/surrealdb-for-web-applications

1 file changed

+2
-2
lines changed

docs/guides/databases/surrealdb/surrealdb-for-web-applications/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Referencing those two guides, you need to do the following to keep up with the r
5050
1. Create a limited user with database-level access. This example names the user `exampleUser`.
5151

5252
```command
53-
DEFINE LOGIN exampleUser ON DATABASE PASSWORD 'examplePass';
53+
DEFINE USER exampleUser ON DATABASE PASSWORD 'examplePass';
5454
```
5555

5656
1. Close the SurrealDB CLI and stop the SurrealDB server with the <kbd>Ctrl</kbd> + <kbd>C</kbd> key combination.
@@ -807,4 +807,4 @@ This tutorial provides the tools needed to start implementing SurrealDB as a bac
807807
808808
More importantly, leveraging SurrealDB's APIs can make applications more adaptable. Whether it's for a traditional frontend, or a modern architecture like Jamstack with a static site generator, SurrealDB can be a full backend resource. This provides a lot of flexibility.
809809
810-
Be sure to look at our other guides on SurrealDB, linked earlier in this tutorial. Additionally, learn more about schemas and document relations with our guide on [Modeling Data with SurrealDB’s Inter-document Relations](/docs/guides/surrealdb-interdocument-modeling/).
810+
Be sure to look at our other guides on SurrealDB, linked earlier in this tutorial. Additionally, learn more about schemas and document relations with our guide on [Modeling Data with SurrealDB’s Inter-document Relations](/docs/guides/surrealdb-interdocument-modeling/).

0 commit comments

Comments
 (0)