Apply transformation on nested object fields (based on dot notation)

Ah I now see that Jsonata has a ~> (transform) operator. So I assume I need to use that one ...