Modifying schema in mongo atlas

Hello, am new to mongo,
i just encountered this weird error,
i recently updated a required field in my schema to be non-required and this action somehow caused everything to crash my app is a MERN stack . the update was done inside my models folder on backend and somehow mongo atlas still considers this field to be required . hope you guys can help me

Hey :wave: @deal_maker,

Thank you for reaching out to the MongoDB Community forums :sparkles:

To assist you better, could you please share the specific changes you made in the schema?

Regarding the crash in your app, it would be helpful if you could share the logs or any error messages you’re receiving.

Can you verify if there are any documents in your collection that still have that field as required? In addition, it would be beneficial to check if you have any validation rules set in your MongoDB Schema.

Feel free to provide any further details or code snippets related to your issue so that we can assist you more effectively.

Best regards,
Kushagra

thanks bro for your quick response but the issue is fixed. it turns out some pre save validation gave me trouble but its all good now. thanks for your time