edgedb-js
edgedb-js copied to clipboard
The official TypeScript/JS client library and query builder for EdgeDB
**Code** ```typescript // Inferred type: string | number | bigint // Expected: bigint const max = await e.max(e.set(1n, 2n)).run(client); ``` **Versions (please complete the following information):** - OS: - EdgeDB...
Simple reproduction case here: https://github.com/quinnvaughn/reproduction Discord conversation here: https://discord.com/channels/841451783728529451/1102466847271559258 --- Having done a little bit of debugging in the language server, I was able to confirm that there are certain...
**Code** ```typescript e.insert(e.StrategyGamer, { faveGame: strategyGame, // ^^^^^^^^^^^^^^^^^^^^^^ link `faveGame` is not allowed even though it should be firstName: "A", lastName: "A", }); ``` **Schema** ``` abstract type Game {...
**Code** The code causing the error: get `Service` by `id` constrained by `of` (`User`) ```typescript /* * typechecks but throws at runtime * Error: Invalid value for type default::User: {"id":"5d4fe742-a85f-11ed-931e-c7a8a8ffec99"}...
**Describe the bug** When running typescript, I get the following console error on every server startup. ```bash WARN "$toSet" is imported from external module "file:///Users/fabian/path/to/my/project/node_modules/edgedb/dist/reflection/index.js" but never used in "dbschema/edgeql-js/typesystem.ts",...
The assert_exists insertion for required multi links was introduced as a workaround for https://github.com/edgedb/edgedb-js/issues/333. https://github.com/edgedb/edgedb/pull/5180 fixes that. As soon as we can, we should try to stop doing this; assert_exists...
**Describe the bug** Passing an invalid UUID string does not always throw `InvalidValueError` **Reproduction** Include the code that is causing the error: ```typescript import { createClient } from "edgedb"; import...
(See: https://discord.com/channels/841451783728529451/1054179754951057439/1054433256956756029)
Hello, I would like to build a custom generator for `ReScript`. More precisely a `queries generator`. So I started to play with the `$.analyzeQuery` function. Unfortunately it returns the `args`...
**Describe the bug** Just wanted to log some issues I experienced wrt. setting up the .gitignore file while trying to setup edgedb code generation in a monorepo where the "edgeql-js"...