Repeater runs based on total votes

@tomer-wix Hi Tomer,

So now im using the codes below but its say item means the item in the field. how do i define my item if my item has a (Title) field that has a (text) a name of a project in my case?

Thank you in advance.

// …

let toUpdate = {
“_id”: “2ebd65c9-7a3f-4b16-8827-08f62743510c”,
“title”: “LYNNWAY LEARNING LAB”,
“project”: “2000”,

};

wixData.update(“Projects”, toUpdate)
.then( (results) => {
let LYNNWAY LEARNING LAB <<< ((how do i define each item))= results; //see item below
} )
. catch ( (err) => {
let errorMsg = err;
} );

/* item is:
*

  • {
  • “_id”: “00001”,
  • “_owner”: “ffdkj9c2-df8g-f9ke-lk98-4kjhfr89keedb”,
  • “_createdDate”: “2017-05-24T12:33:18.938Z”,
  • “_updatedDate”: “2017-05-24T12:33:18.938Z”,
  • “title”: “Mr.”,
  • “first_name”: “John”,
  • }
    */