Frontmatter
| id | 2608 |
| title | data.Store: updateRecords() |
| state | Closed |
| labels | enhancementstale |
| assignees | [] |
| createdAt | Jul 15, 2021, 9:08 PM |
| updatedAt | Sep 16, 2024, 4:36 AM |
| githubUrl | https://github.com/neomjs/neo/issues/2608 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 16, 2024, 4:36 AM |
We could add a bulk update method to change multiple fields on multiple records in parallel.
E.g.:
myStore.updateRecords({ ids: [1, 2, 3], endTime: '23:00', startTime: '21:00' });For non remote stores, this should probably trigger a
recordChangeevent for each affected record.We can add a new bulk change event as well.
For remote stores, we can create a single ajax request to the BE, containing all changes.
Open for ideas!