Array to Repeater

With a friend help, we create this code that results a query in array .
in console log i can see the query " arrayNotRead " results …
now big problem, is to show them in a repeater… someone know how to pass it?
many thanks.

  let arrayNotRead = [] ;
 
  wixData.query("supportRequest2")
            .eq('email', userEmail)
            .find()
            .then((res) => {
 for(let i=0; i<res.items.length;i++){
                     wixData.query("TicketMessage")
                        .eq('idesterno', res.items[i]['_id'])
                        .find()
                        .then((mess) => {
 if(mess.items.length > res.items[i]['numMsgRead']){
                               arrayNotRead.push(res.items[i])
                            }
                        })
                }
                console.log(arrayNotRead);
            }
        )
 

Hi :raised_hand_with_fingers_splayed:

You need to pass the array of items to the repeater’s data like this:

$w('#repeater').data = arrayNotRead;

Although I don’t understand the logic of your code and what you’re trying to do, but, here you have it.

Thanks Ahmad, i already try this solution but repeater still empty.
i guess code is ok, but maybe need to set each items inside repeater?

As @Ahmad said your aim is still unclear…
Can you explain what you are trying to do…

You need to bind the data of the repeater, that means, you need to tell the code how to populate the elements inside that repeater.

You can use either onItemReady( ) , forItems( ) and forEachItem( ) .