Skip to content

Commit

Permalink
Improve the docs and fix number to string (#317)
Browse files Browse the repository at this point in the history
* Improve the docs and fix number to string

* Update docs

Co-authored-by: Colin McDonnell <colin@edgedb.com>
  • Loading branch information
nicu-chiciuc and colinhacks committed Apr 4, 2022
1 parent 5bd3da1 commit 69b9e45
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ as strings, the driver API is all you need.
console.log(result); // "Hello world!"
}
run();
If you're not using TypeScript, you can skip straight to :ref:`the Driver docs
<edgedb-js-examples>`.

Expand All @@ -86,6 +88,8 @@ users—it's awesome.
console.log(result); // "Hello world!"
}
run()
As you can see, you still use the ``edgedb`` module to instantiate a client,
but you use the auto-generated query builder to write and execute your queries.

Expand All @@ -100,8 +104,8 @@ need an ORM to write strongly typed queries.
const client = edgedb.createClient();
const q1 = await e.str("Hello world!").run(client);
// number
const q1 = await e.select("Hello world!").run(client);
// string
const q2 = await e.set(1, 2, 3).run(client);
// number[]
Expand Down

0 comments on commit 69b9e45

Please sign in to comment.