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