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

Error: `Expr or its aliases used outside of declared 'WITH' block scope` when `.unlessConflict` appended to `insert`

Open varmiral opened this issue 1 year ago • 0 comments

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-js version: 1.4.1
  • @edgedb/generate version: 0.4.1
  • Typescript version: 5.2.2
  • Node version: 20.9.0

varmiral avatar Nov 25 '23 16:11 varmiral