data-api-client
data-api-client copied to clipboard
How does this handle partial object/record updates?
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?