Creating Documents: insertOne()

Don’t we need to specify the data type while inserting a document through the mango shell.

No you don’t. Please refer to the documentation.

https://docs.mongodb.com/manual/reference/method/db.collection.insertOne/

Hi @SriJanani_75688,

I hope you found @steevej-1495’s response helpful.

Please let me know if you still have any query.

Thanks,
Shubham Ranjan
Curriculum Services Engineer