I wanna ask if you can insert some NEW data to an existing User,
Without adding them from before but only by defining them in the model.
Is that possible and if yes how?
Please let me know if you didn't understand any part of this.
I wanna ask if you can insert some NEW data to an existing User,
Without adding them from before but only by defining them in the model.
Is that possible and if yes how?
Please let me know if you didn't understand any part of this.
https://docs.mongodb.com/manual/reference/method/db.collection.update/
mongodb.someCollection.update(
{/* some query to match the record or not */},
{/* record to update OR record to insert if no match */},
{
/* options */
upsert: true
}
)