techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.73k stars 482 forks source link

Update whole record #876

Closed jahangirabd closed 2 years ago

jahangirabd commented 3 years ago

Hi, is there any way to update whole record , not just parameters.

`log('new data', query.set);

var updData= await this.db.getCollection(query.in).chain().find(query.where).update(function(data) { data = query.set; }).data()

log('updated data', updData); // data not changes, also after select`

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.