Ordinary Shares - Summary of Ordinary Shares Reserved for Issuance (Details) - shares
Jan. 31, 2022
Apr. 30, 2021
Class of Stock [Line Items]    
Total ordinary shares reserved (in shares) 28,338,698 26,650,118
Stock options    
Class of Stock [Line Items]    
Total ordinary shares reserved (in shares) 5,486,883 7,611,016
RSUs    
Class of Stock [Line Items]    
Total ordinary shares reserved (in shares) 4,034,604 3,301,283
2012 Plan    
Class of Stock [Line Items]    
Total ordinary shares reserved (in shares) 18,817,211 15,737,819