edgedb-js
edgedb-js copied to clipboard
The official TypeScript/JS client library and query builder for EdgeDB
The ability to opt in to zod schema generation would be awesome not sure how `$infer` works behind the scenes (if it has runtime type understanding) I'm wanting this for...
Running `npx edgeql-js` throws ``` Detected package.json. Generating .js files with CommonJS module syntax. To override this, use the --target flag. Run `npx edgeql-js --help` for details. Generating query builder...
**Code** The code causing the error. ```typescript e.select(e.User, user => ({ id: true, following: e.select(user['
**Code** ```typescript export const LIST_HANGOUTS = e.select(e.Hangout, (x) => ({ id: true, name: true, // https://github.com/edgedb/edgedb-js/issues/427 participantsArray: e.select(x.participants, (y) => ({ id: true, name: true, avatar: true, status: e.cast( e.Status,...
Got another doozy. Link properties keep killing me. I have the following: Schema: ``` module default { global current_user_id -> uuid; scalar type ParticipantTag extending enum; type Hangout Location {...
I find my self needing to select several documents that match elements in an array. Let's take an arbitrary example where I have `Array` representing ids to several documents of...
**Describe the bug** I hit this bug when using regexes in my edgeql query, which require backslash escapes "\\". It looks like the query generator is not adding another pair...