Javascript – MongoDB – Update record if 'date' exists, otherwise add a new one
I've looked at similar questions but couldn't find my answer. I've got this info: { "_id": "631337640754675725", "characters": [ { "name": "Druuwu", "scores": [ { "date": "2023-09-03", "score": 100 }, { "date": "2023-09-03", "score": 1000 }, { "date": "2023-09-03", "score":…