M121 server mongo version not 4.2


I try to use regexFind but i get an error

“Unrecognized expression ‘$regexFind’”

It looks like server mongo version for exercise has never be updated since 3.6.17

The MongoDB Curriculum Services Engineers have mentioned that the courses are going to upgraded soon.

In the meantime, you can use the Pattern Matching syntax instead of $regexFind()

$match: {
   columnName: /^string/

Hi @Anthony_34059,

We are working on upgrading our courses to the latest MongoDB version.

You can refer to the following documentation link for more details on regex:

Please let me know, if you have any questions.