I want to delete a property of a document ( in monngodb ) by using sth. like $pull/$unset. this operation needs to be handled by it's own route. Since the purpose of this route is to remove a property, I'm stuck between 2 HTTP methods DELETE and PATCH.
DELETE is used to delete whole documents while PATCH is mostly used to modify existing properties. My operation somehow has some of both properties so I'm wondering which HTTP method better fits this scenario. I couldn't find any description or discussions online. Would be nice to hear something from you folks