Yes, I definitely do want to upsert. Initially the html entry won’t exist, the first time it needs to be created. In the future it matches by slug. (which I get will break if the slug breaks, I should update a reference to an id, but I’m still just trying to get the basics working.)
Still does not work though. How exactly should this update statement work?
htmlCollection.updateOne({'slug': fullDocument.slug}, { $set: fullDocument }, {upsert: true})