-
Notifications
You must be signed in to change notification settings - Fork 250
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
Conditional WHERE clause #860
Comments
You can't join on an array of fragments as that will just result in a stringified version of it. Use eg. flatMap and only insert and if i !== 0. Eg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I looked through some of the older issues regarding this but they did not solve my problem. Here is my code snippet
fragments just contains 0 or many of these for example:
I keep getting an empty response from my DB but im not sure why, even though If I write out the full query and query my DB, it returns with a populated response.
The text was updated successfully, but these errors were encountered: