Old Apple Health training data to garmin connect?

Just gor my first Edge 1040.

How do i transfer all my old training data (cycling and running) from Apple Health to garmin connect?