MongoDB Inc. MDB, -0.81% shares surged more than 12% in the extended session Wednesday after the software business issued bullish guidance, well above what Wall Street had modeled, and beat expectations for quarterly losses and revenue. The company reported first-quarter net losses of $22.2 million, or 41 cents a share, compared with losses of $20 million, or 40 cents a share, in the year-ago period. Adjusted for items such as stock-based compensation, acquisition costs and non-cash interest expense related to convertible debt, losses were 17 cents a share, narrowing from 27 cents a share in the year-ago quarter. Revenue rose to $85.5 million from $50.1 million in the year-ago period. Analysts surveyed by FactSet had estimated adjusted losses of 38 cents a share on revenue of $74 million. For the first quarter, analysts model losses of 37 cents a share on sales of $75 million. For the full year, analysts expect losses of $1.28 a share on sales of $347 million. The company said it expects first-quarter adjusted losses of 25 cents to 23 cents a share and sales of $82 million to $84 million; for the full year it expects adjusted losses of $1.06 to 98 cents a share on sales of $363 million to $371 million. Mongo stock has gained 175% in the past year, with the S&P 500 index SPX, -1.66% rising 1%.