Net Loss Per Share Attributable to Ordinary Shareholders - Schedule of Computation of Basic and Diluted Net Loss Per Share Attributable to Ordinary Shareholders (Details) - USD ($)
$ / shares in Units, $ in Thousands
3 Months Ended 9 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Jan. 31, 2022
Jan. 31, 2021
Numerator:        
Net loss $ (56,726) $ (37,974) $ (138,238) $ (86,133)
Denominator:        
Weighted-average shares used in computing net loss per share attributable to ordinary shareholders, basic and diluted (in shares) 93,015,185 88,341,038 92,140,919 86,296,028
Net loss per share attributable to ordinary shareholders, basic and diluted (in dollars per share) $ (0.61) $ (0.43) $ (1.50) $ (1.00)