That would have to be:
You’re looking for something that contains “m” somewhere (SQL’s ‘
%‘ operator is equivalent to regular expressions’ ‘
.*‘), not something that has “m” anchored to the beginning of the string.
Note: MongoDB uses regular expressions which are more powerful than “LIKE” in SQL. With regular expressions you can create any pattern that you imagine.
For more information on regular expressions, refer to Regular expressions (MDN).