I have the following data in my mongo database.
{
"FirstName": "Sunil",
"LastName": "Jamkatel"
}
I would like to add fullname to all the documents in the database such that it takes the firstname and lastname from a document and adds them up like:
{
"FirstName": "Sunil",
"LastName": "Jamkatel",
"FullName": "Sunil Jamkatel"
}
Please let me know the ways to do it using mongoosejs. Thanks