Running queries on Collections

Hi, is there a way to run a query on a Collection in order to change a field value in batch?

1 Like

Do you want to loop through a lot of items and then update a certain field in that collection? You can use the items.forEach(function(entry) {} and then let’s say entry.title = “new title”; between the {}. First you need to use wix-data to query the records you want and also make sure you let items = results.items;

Happy coding.