jeremydaly / data-api-client

A "DocumentClient" for the Amazon Aurora Serverless Data API
MIT License
439 stars 61 forks source link

How does this handle partial object/record updates? #55

Open joeythomaschaske opened 4 years ago

joeythomaschaske commented 4 years ago

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?