Which of the following returns a substring of a string?
(a) $subs
(b) $substring
(c) $substr
(d) None of the mentioned
This question was addressed to me at a job interview.
Origin of the question is Pipeline and Sharded Collections in section Aggregation Concepts and Aggregation Mechanics of MongoDB