mongodb insert one code example
Example 1: mongodb insertone
db.<yourcollection>.insertOne({name :"<yourvalue>", firstname :"<yourvalue>"})
Example 2: mongodb insert
db.products.insert( { item: "card", qty: 15 } )
db.<yourcollection>.insertOne({name :"<yourvalue>", firstname :"<yourvalue>"})
db.products.insert( { item: "card", qty: 15 } )