Skip to content

Commit

Permalink
Update docs: reflect changes to .query from surrealdb.js v0.11.0
Browse files Browse the repository at this point in the history
I think that should prevent to lead to problems like surrealdb/surrealdb.js#219
  • Loading branch information
oskar-gmerek committed Mar 30, 2024
1 parent d0f8d02 commit 6db13e4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,10 @@ const result = await db.query<[Person[], Person[]]>(
);

// Get the first result from the first query
const created = result[0].result[0];
const created = result[0][0];

// Get all of the results from the second query
const people = result[1].result;
const people = result[1];
```


Expand Down Expand Up @@ -1444,4 +1444,4 @@ This function will run the following query in the database.

```surql
DELETE * FROM $thing;
```
```

0 comments on commit 6db13e4

Please sign in to comment.