Common Stock and Stockholders' Equity (Deficit) - Stock Option Activity (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 12 Months Ended
Mar. 31, 2019
Apr. 30, 2019
Jan. 31, 2019
Number of Shares      
Outstanding, beginning balance (in shares)   14,006,222  
Granted (in shares) 3,041,000 3,682,821  
Exercised (in shares)   (951,830)  
Forfeited (in shares)   (208,525)  
Outstanding, ending balance (in shares)   16,528,688 14,006,222
Weighted Average Exercise Price      
Outstanding, beginning balance, weighted average exercise price (in dollars per share)   $ 4.32  
Granted, weighted average exercise price (in dollars per share)   15.04  
Exercised, weighted average exercise price (in dollars per share)   2.37  
Forfeited, weighted average exercise price (in dollars per share)   6.13  
Outstanding, ending balance, weighted average exercise price (in dollars per share)   $ 6.80 $ 4.32
Weighted Average Remaining Contractual Term      
Outstanding, weighted average remaining contractual term   8 years 4 months 24 days 8 years 2 months 12 days
Aggregate Intrinsic Value      
Outstanding, aggregate intrinsic value   $ 662,726 $ 142,840
Vested      
Vested, number of shares (in shares)   5,743,831  
Vested, weighted average exercise price (in dollars per share)   $ 2.74  
Vested, weighted average remaining contractual term   7 years 4 months 24 days  
Vested, aggregate intrinsic value   $ 253,662