I am learning about map() and I’m trying to update array of objects. So for the example below, I am trying to do something like:map(1.shopping_basket.items; item_name, item_price)
, where result is the same array but containing just item_name, item_price fields. Is this possible or am I misusing the map() function?
Nope, you can only use the map function to map a single key from an array of collections.
To return more than one key, you’ll need to use an Iterator and Array Aggregator module.
For more information, see the map function documentation in the Help Center.
samliew – request private consultation
Join the Make Fans Discord server to chat with other makers!
1 Like