How can I use a create_service with array datatype?
I'm trying to use a create_service with a Col of array datatype using mapping, but it doesn't work. Someone can help me?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I'm trying to use a create_service with a Col of array datatype using mapping, but it doesn't work. Someone can help me?
Hi Joao,
Add JS for this parameter:prereturn JSON.stringify(value);/pre
Thx for the help but It doesn't work
Joao,
Try this code please:prereturn value.toString();/preWhat data is expected in parameter 'ids'? Could you please show an example?
return value.toString(); Doesn't work too...
"ids" is a string like "52d045a0e4b06de3a9a5acc8" and nome is a name, string too, like "João Marcos"
Hi - and "ids" and "nomes" are receiving arrays?
no, "ids" and "nomes" are receiving a string
If you mapping string to 'nomes' it would not work - you'll need to transmit an a array -- pre [ ... ] /pre
can I insert, mapping, in "id_funcionario" something like that:
["52d045a0e4b06de3a9a5acc8","João"],["12d045a0e4b06de3a9a5a123","Mario"]
How can I use mapping with arrays like that?