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