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

Deno example

Open brielov opened this issue 2 years ago • 2 comments

Simply wondering how to use query builder with deno without the need of having npx available in the environment.

Is there any documentation on how to use it with deno?

brielov avatar Jun 13 '22 23:06 brielov

Looking for information on this too, trying to utilise the query builder when using Deno just doesn't seem to work.

The query builder seems to be node specific currently.

@jaclarke is there any formal documentation around QB with Deno? If not are there any work arounds to get this working?

Thanks a lot

aarongeorge avatar Jul 01 '22 16:07 aarongeorge

Currently the querybuilder doesn't really support Deno. The actual querybuilder part itself is all just plain typescript so should work fine with deno, but the codegen part I think still uses a few node api's and needs a little work generate deno compatible imports/etc. As a workaround until this is fixed, I believe someone had some success on the edgedb discord with generating the querybuilder using npx, and fixing the generated imports, though I haven't really looked into this, so it may not be a simple workaround.

jaclarke avatar Jul 04 '22 12:07 jaclarke