Skip to content
Advertisement

Upsert in KnexJS

I have an upsert query in PostgreSQL like:

I need to use knex to this upsert query. How to go about this?

Advertisement

Answer

So I solved this using the following suggestion from Dotnil’s answer on Knex Issues Page:

Hope this helps someone.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement