You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To build a subquery I am using knex to build the subquery. I am then using toString() method to put the query part into a strucd.knex.raw() which again is in a knex chain for the outer query. See full example below.
Hello,
I am using knex with a postgres database.
To build a subquery I am using knex to build the subquery. I am then using toString() method to put the query part into a strucd.knex.raw() which again is in a knex chain for the outer query. See full example below.
knex turns the array into a valid postgresarray '{1,2,3}', but as soon as i call toString() it will be '{"1","2","3"}'.
So at the moment I have to put a .replace(/"/g, '') after each toString() just to circumvent that problem.
I would prefer knex handling that situation correctly instead of me hacking around it.
Kind Regards
Full example
The text was updated successfully, but these errors were encountered: