I using the postgresql in node application and knex.
I want to add text to exist field
for example if the field has value "abc" I want to add the "DEF" to "ABC" ==>"abcDEF"
in BASE SQL it is look like that: update set = [fieldname] + 'new text' this is my code that doesn't work
var password ={my full object}
password.versions = `[versions] || ${password.versions}`;
return db('passwords')
.where({
id: id,
deleted: false,
active: true
})
.update(password);