I’m trying to insert into a collection with mongo operators, i’m using simple schema with my collection. I get this error: Error: When the validation object contains mongo operators, you must set the ‘modifier option to true’.
But I don’t actually know where to set the modifier option in my code. Can someone help with this?
I am assuming you are using collection-2 as well? Check the options section in the documentation.
1 Like
Thank you. I don’t know how i missed that from the ReadME.