Why document are not inserting with updated schema model?

Hello everyone,

I have added a new field in my existing schema and tried to insert the data. Insertion is successful without my newly added field in the schema model.

I can’t delete my collection or move the data to a new collection. I want to create documents with my updated schema model.

Instruct me guys, how can I get my new entry with my updated schema?

Your support is appreciable!

Hey @Deepanshu_Bedi,

Welcome to the MongoDB Community Forums! :leaves:

In order to better able to understand your problem and help you, can you please share the following with us:

  • Your MongoDB version
  • Some sample documents
  • The code that you’re running
  • Output you’re getting as well as the expected output

Regards,
Satyam