edgedb-js
edgedb-js copied to clipboard
Error: `Expr or its aliases used outside of declared 'WITH' block scope` when `.unlessConflict` appended to `insert`
Code
Please clone https://github.com/varmiral/edgedb-with-issue.git
The code is based on https://www.edgedb.com/docs/clients/js/for#handling-conflicts-in-bulk-inserts with the addition of .unlessConflict (44:11) to handle existing characters.
Equivalent edgeql query works as expected.
Related issue: https://github.com/edgedb/edgedb-js/issues/679
Error or desired behavior
Error: Expr or its aliases used outside of declared 'WITH' block scope
Versions (please complete the following information):
- OS:
Ubuntu 23.10 - EdgeDB version:
4.2 - EdgeDB CLI version:
4.0.2+be1da73 edgedb-jsversion:1.4.1@edgedb/generateversion:0.4.1- Typescript version:
5.2.2 - Node version:
20.9.0