UPDATE
MyModel.update(
/* {int|string}. -- the id of the entity to update */
<id>,
/* {object} -- the data to update */
<data>,
/* {Array} -- optional. ex: ['ParentEntity', 1234 ] */
<ancestors>,
/* {string} -- optional. A specific namespace */
<namespace>,
/* {Transaction} -- optional. The transaction currently in progress */
<transaction>,
/* {object} -- optional. Additional config */
<options>,
/* {function} -- optional. The callback, if not passed a Promise is returned */
<callback>
)Options
Last updated
Was this helpful?