How do I do a query loop and populate a repeater

Thanks for the response
within this as the loop fills each container data with the looped objects inside the items array, how do I change the container color within the same loop?
I am trying to filter the items array inside the DB
results = {items:[{colarowa,colbrowa,…},{colarowb,colbrowb,…},{colarowc,colbrowc}]}
I am trying to loop through objects inside the items array that fit a query criteria so that the returned objects will populate the repeater containers. The criteria and how many times the loop will occur is not specific, it will be determined by the length of the array and contents.
As you may know the contents of the array are ids that are compared with the “allid” in the “ALL” DB

let arrayy = [a,b,c,d]
$w(“#repeaterfill”).onItemReady(($item,itemData,index=>{
$item (“#Title”). text= itemData . title ;
}
for(let i=0; i<arrayy.length;i++){
let fill = wixData.query(“ALL”)
.eq(“allid”,array[i])
Promise.all([fill.limit(1000).find()])
.then((res)=>{
let returned = [res[0].items].flat()
$w(“#repeaterfill”).containercolor = “red”// something like this
$w(“#repeaterfill”).data[i] = returned[i]
})
}