Hy guys,
I’m actually using aldeed autoform + aldeed simpl-schema through a project.
I actually have this code :
console.log(Partners.find({'partner_details.is_customer': true}).map(s => s.name + ' ' + s.surname + ' | ' + s._id));
Which display :
[“Partenaire 1 Partenaire 1 | z6WScpCK7gvJropub”, “Partenaire 2 Partenaire 2 | g2sciqeEcL4WCL2db”]
I want to rework it to get this result :
{label:"Partenaire 1",value:"z6WScpCK7gvJropub"},{label:"Partenaire 2",value:"g2sciqeEcL4WCL2db"}
Does anyone know how should i do to complete this task ?
Thanks a lot for your help
Happy coding,
B.