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

Add option to filter where `@edgedb/generate queries` looks for `.edgeql` files.

Open jaclarke opened this issue 2 years ago • 1 comments

Currently the npx @edgedb/generate queries command will generate queries for every .edgeql in your edgedb project (defined by the edgedb.toml), but you may not want some .edgeql files to be included, eg. bootstrap scripts, or have multiple projects sharing the same edgedb project, eg. monorepos.

So it would be useful to be able to configure where it looks for .edgeql files, to exclude certain directories, and/or only include certain directories, possibly using glob expressions?.

jaclarke avatar May 23 '23 22:05 jaclarke

Yeah, that seems reasonable. I can imagine something like what prettier and eslint use as their path resolution should work for us.

scotttrinh avatar May 24 '23 00:05 scotttrinh