Hello Everyone,
I am a bit new to node and mongoDB what I want it when user enters new data it should get stored in database, but whne user tries to enter a new record but if record name already exists it should update the previous record in which older data should bot be delete but should be updates in an array,
for eg.: if name: Juned
after updateing it should be name {
juned,
john
},
how can I do this and what will be the query for this
Thanks in advance
Juned Adenwalla,