Handlebars in Mapper Array

Trying to use a handlebar in Mapper 2.0 I get the following error:

Mapper 2.0: You can only use a valid JSONPath expression or hard-coded value for destination field(s): ids

I only get this when I map to a [number] or [string].

Handlebar expressions are only supported for string, boolean, and number destination data types.

1 Like

In the past, yes, that made sense because you couldn't get a usable array value out of handlebars, but now you have all these new handlebars that return arrays:
{{arrayify}}, {{pluck}}, {{unique}}, {{after}}, {{before}}

You wouldn't want these to go to waste, now, would you? :slight_smile:

Well I didn't say we weren't working to support it, just that we don't currently :slight_smile:

Thanks! I guess it's just a pre-map script in the meantime.