Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use e.with with .insert().unlessConflict() #942

Open
scotttrinh opened this issue Apr 9, 2024 · 0 comments
Open

Cannot use e.with with .insert().unlessConflict() #942

scotttrinh opened this issue Apr 9, 2024 · 0 comments
Labels

Comments

@scotttrinh
Copy link
Collaborator

See:

export type WithableExpression =
| $expr_Select
| $expr_For
| $expr_Insert
| $expr_Update
| $expr_Group;

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

@scotttrinh scotttrinh added the bug label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant