Open alex-w0 opened 4 years ago
I've solved it now with the following:
persons: (iteration) => {
return morphism(
{
personsId: 'id',
personsName: 'name'
},
iteration.persons
);
},
Can you confirm that this is the official way to do this? I think there should be an example of this in the documentation.
Unfortunately I can't find the answer I'm looking for in the documentation. Is there a way how I can map an array of objects like the example below? What must the scheme look like?