edgedb-js
edgedb-js copied to clipboard
The official TypeScript/JS client library and query builder for EdgeDB
See: https://github.com/edgedb/edgedb-js/blob/94d02ae58e648350d04349a07d1f149e8b666ed6/packages/generate/src/syntax/with.ts#L31-L36 A workaround is to wrap the `.insert().unlessConflict()` in a `e.select` block which helps the types align.
It defaults to `no` in the official `create-next-app`.
Will follow-up with similar changes to the other frameworks.
We should conditionally set the `Secure` cookie attribute in all of the auth helper libraries for the session token to ensure they are not accessible in non-TLS HTTP sessions.
**Code** The code causing the error. ```typescript const listQuery = e.select(e.User, () => ({ limit: 10, // ⚠️ without this the query is generated correctly })) const resolverQuery = e.with([listQuery],...
**Problem** Suppose you want to toggle query performance logging, `toEdgeQL()` debug logging, or a security `assert` before every query is run. There is currently no pattern to do so in...
**Code** ```ts const query = e.params( { parentId: e.uuid, }, (params) => e.select(e.Child, (child) => ({ filter_single: e.op(params.parentId, "in", child.parents.id), parents: (parent) => ({ "@prop": true, filter_single: e.op(parent.id, "=", params.parentId),...
We probably want to revisit the options docs, but at the very least, this adds documentation for the http client creation function.
Follows similar PRs for Next (#897) and Remix (#899).
**Describe the bug** The bulk insert example needs to use the `e.json_get()` instead of directly accessing the element https://github.com/edgedb/edgedb-js/blob/f9f39c918bac0385f4e55e0667a15c35d66f3a2d/docs/for.rst?plain=1#L31 **Reproduction**  ``` No overload matches this call. Overload 1 of...