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

Cannot use `e.with` with `.insert().unlessConflict()`

Open scotttrinh opened this issue 2 months ago • 0 comments

See: https://github.com/edgedb/edgedb-js/blob/94d02ae58e648350d04349a07d1f149e8b666ed6/packages/generate/src/syntax/with.ts#L31-L36

A workaround is to wrap the .insert().unlessConflict() in a e.select block which helps the types align.

scotttrinh avatar Apr 09 '24 14:04 scotttrinh