db.collection(tableName).save({}, {}, (err, doc)=>{ console.log(`Saved doc: ${JSON.stringify(doc)}`) }) displays:
Saved doc: {"ok":1,"n":1} The record in the database is successfully created. How now to find out with what identifier it was saved then?)
I want to make sure that I don’t care if there is a record in the database, or if a new one is being created. For this purpose, it seems like save () is intended?