data-api-client icon indicating copy to clipboard operation
data-api-client copied to clipboard

How does this handle partial object/record updates?

Open joeythomaschaske opened this issue 5 years ago • 0 comments

I'm curious if this library handles partial objects in the parameter sets.

This would happen when a subset of records/objects are modified at run time.

For example

// Update with named parameters
let update = await data.query(
  `UPDATE myTable SET age = :age, name = :name WHERE id = :id`,
  { age: 13, id: 5 }
  { age: 20, id: 6, name: 'Pierre' }
)

How would this library handle only one of the records containing the name parameter?

joeythomaschaske avatar Aug 27 '20 18:08 joeythomaschaske