You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constselectQuery=e.select(e.ActivitySnapshot,()=>({id: true,})).id;console.log(selectQuery.toEdgeQL());// see belowconsole.log(awaitselectQuery.run(Client));// [], no exception thrown
Schema
# as applicable to this examplemoduledefault {
type ActivitySnapshot {}
}
Generated EdgeQL
(WITH
__scope_0_defaultActivitySnapshot :=DETACHEDdefault::ActivitySnapshot
SELECT __scope_0_defaultActivitySnapshot {
id
}).id
Error or desired behavior
The generated EdgeQL throws EdgeQLSyntaxError when executed directly Unexpected '('. It does not throw an error on selectQuery.run and in fact returns "correct" results.
Versions (please complete the following information):
OS: macos 14.5
EdgeDB version (e.g. 2.0): 4.7
EdgeDB CLI version (e.g. 2.0): 5.1.0
edgedb-js version (e.g. 0.20.10;): 1.5.6
@edgedb/generate version (e.g. 0.0.7;): 0.5.3
TypeScript version: 5.4.5
Node/Deno version: 20.11.1
The text was updated successfully, but these errors were encountered:
jackfischer
changed the title
Incorrect syntax generated for property off of select that executes against
Incorrect syntax generated for property off of select that actually queries correctly
Jun 6, 2024
Code
Schema
Generated EdgeQL
Error or desired behavior
The generated EdgeQL throws
EdgeQLSyntaxError
when executed directlyUnexpected '('
. It does not throw an error onselectQuery.run
and in fact returns "correct" results.Versions (please complete the following information):
2.0
): 4.72.0
): 5.1.0edgedb-js
version (e.g.0.20.10
;): 1.5.6@edgedb/generate
version (e.g.0.0.7
;): 0.5.3The text was updated successfully, but these errors were encountered: