bookshelf update multiple code example
Example: bookshelf update multiple
Product
.where({sold_out: true})
.save(
{sold_out: false},
{method: 'update', patch: true}
)
Product
.where({sold_out: true})
.save(
{sold_out: false},
{method: 'update', patch: true}
)