Closed MiroslavPetrik closed 2 months ago
This is actually a small bug in the introspection: if you remove the {*}
shape from your global it will work as expected. Globals do not need shapes in their definition, you would put the shape on the select when using the global, when needed.
FWIW, this has been addressed on the server side, I believe, and should be fixed in an upcoming release.
Thank you @scotttrinh it worked.
Error The
npx @edgedb/generate edgeql-js --out ./src/edgeql-js
(latest version 0.5.6) generates code which is not able to compile. With the previous version (0.4.1) it worked.Schema
Your application schema.
Error or desired behavior
The generated code should compile. I have a repository (https://github.com/MiroslavPetrik/net3-starter/tree/bump-generate) where this error can be reproduced (npm install and npm run build). Also the generated code works on the main branch with the same schema.
Versions (please complete the following information):
2.0
): 5.62.0
CLI 5.2.3+92d41c6edgedb-js
version (e.g.0.20.10
;): 1.5.12 (edgedb)@edgedb/generate
version (e.g.0.0.7
;): 0.5.6