v3.21.1
Net loss per share attributable to common stockholders - Schedule of antidilutive securities (Detail) - shares
12 Months Ended
Jan. 31, 2021
Jan. 31, 2020
Jan. 31, 2019
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 5,406,004 7,039,007 31,205,249
Convertible preferred (as converted to common stock)      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 0 0 25,311,535
Stock options to purchase common stock, restricted stock units and performance stock units      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 5,406,004 6,963,870 5,055,505
Warrants | Preferred stock      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 0 0 581,798
Warrants | Common stock      
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]      
Antidilutive securities excluded from computation of earnings per share (in shares) 0 75,137 256,411