edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

The official TypeScript/JS client library and query builder for EdgeDB

Results 220 edgedb-js issues
Sort by recently updated
recently updated
newest added

**Describe the bug** Causing error then call `emailPasswordSignIn` ``` ⨯ TypeError: fetch failed at async $$ACTION_1 (./src/lib/auth.ts:31:5) digest: "3961493417" Cause: Error: self-signed certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34) at TLSSocket.emit (node:events:519:28) at...

**Describe the bug** When connecting to EdgeDB cloud, the required `EDGEDB_*` environment variables need to be read to retrieve the required instance and secret key. The Deno adapter silently avoids...

upstream:deno

```typescript e.select(e.X, { foo: false }) ``` Runtime omits `foo` from EdgeQL, but TS types it as `never`. This allows it to be compatible, somehow, with a type expecting that...

bug

**Code** ```typescript const selectQuery = e.select(e.ActivitySnapshot, () => ({ id: true, })).id; console.log(selectQuery.toEdgeQL()); // see below console.log(await selectQuery.run(Client)); // [], no exception thrown ``` **Schema** ```esdl # as applicable to...

enhancement

When using the latest version of `bun` _(v1.1.10)_, the `bunx @edgedb/generate queries` and the `bunx @edgedb/generate interfaces` scripts do not fully execute. Execution of the scripts starts properly but suddenly...

The code generated by `npx @edgedb/generate edgeql-js` causes TypeScript compilation errors if `noUnusedLocals`, `noUnusedParameters`, or `exactOptionalPropertyTypes` are enabled in `tsconfig.json`. If all three are set to `false`, no errors occur....

bug
upstream:typescript

**Code** ```typescript import e from '../dbschema/edgeql-js'; const insertCitizens = e.params({ citizens: e.json }, (params) => { return e.for(e.json_array_unpack(params.citizens), (citizen) => { return e.insert(e.Citizen, { name: e.cast(e.str, citizen.name), identity: e.insert(e.ext.auth.LocalIdentity, {...

**Code** ```typescript e.ext.ai.search(e.SomeIndexedType, new Float32Array([0.0])); // or with params, which type checks but does not work at query-build-time e.params({ searchTerm: e.array(e.float32) }, (params) => e.ext.ai.search( e.SomeIndexedType, params.searchTerm )); ``` **Error...

bug
upstream:edgedb

**Code** The code causing the error. ```typescript export const homePublic = e.params({}, () => { return e.select({ popularDishes: e.assert_exists(e.assert_single(e.select( e.GlobalState, () => ({ popularDishes: true, limit: 1 }), ))), posts:...

As written, our current `e.op` implementation is O(n) on the number of separate overloads we've defined for it, which is currently in the 270ish range. That means overloads define later...

performance