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