-
Notifications
You must be signed in to change notification settings - Fork 642
Closed
Labels
Description
Hi there, I was trying to use:
Model.query()
.insert({name: "Hello", age: 10, uniqueId: 2})
.onConflict("uniqueId")
.merge(["name"]);As per Knex documentation: http://knexjs.org/#Builder-merge.

But it seems like only the object mode works with Objection.js:
Model.query()
.insert({name: "Hello", age: 10, uniqueId: 2})
.onConflict("uniqueId")
.merge({name: "Hello"});Which is fine, I can use this instead. But maybe we want to have the same API than Knex here too?
Thanks!