edgedb-js
edgedb-js copied to clipboard
The official TypeScript/JS client library and query builder for EdgeDB
Create tools for different frameworks can be updated with: - [ ] Remove ` tsconfig.json` from _base template since it is included in all new JS and TS projects. We...
- EdgeDB Version: 4.5 - EdgeDB CLI Version: 4.1.0 - OS Version: macos 13 Unsure if this is considered a bug or an FR but it caused a bug for...
**Code** The code causing the error. ```typescript e.insert(e.User, () => ({ ucard_number: e.op( // atomically decrement this field for new inserts where we don't have it // to preserves the...
**Code** The code causing the error. ```typescript const query = e.select(e.User, user => ({ color: e.str('blue'), another: e.op(user.color, '??', 'blue'), })); type Out = Array ``` Both of those use...
**Describe the bug** The Deno client library is using APIs that will be removed from Deno soon **Reproduction** Run a Deno application using EdgeDB **Expected behavior** No deprecation warnings **Versions...
In addition to #617 , about `generate queries`: I wrote a simple generator that introspects the schema and creates standard CRUD queries such as `queries/system/getUserByID.edgeql`, `queries/system/getUserByAlias.edgeql`, `queries/system/get_all_User.edgeql` ... where `get_all_User.edgeql`...
GIven this schema: ```esdl module default { type User; abstract type Question; type HealthQuestion extending Question; abstract type Reply { required user: User; required single question: Question; } abstract type...
**Code** The code causing the error. ```typescript async function run() { const query1 = e.select( e.select(e.Movie, (movie) => ({ filter: e.op(movie.title, '=', 'Dune') })), (movie) => ({ comp: movie.is(e.Movie) }),...
Depends on https://github.com/edgedb/edgedb/issues/6724 for consistent error messages and error codes.
For some frameworks, we might have enough information from environment variables to allow running a command to configure most of the auth extension for you, at least for local development....