Exception while simulating the effect of invoking "'' Error: When the validation object contains mongo operators, you must set the modifier option to true

There is another question about the same issue, but I really couldn’t get it.

Could someone explain more about this error?

Exception while simulating the effect of invoking "'' Error: When the validation object contains mongo operators, you must set the modifier option to true

Set modifier option to true … how and where that would be?
Thank you!