mongodb insertOne object code example Example: mongodb insertone db.<yourcollection>.insertOne({name :"<yourvalue>", firstname :"<yourvalue>"})