I have been attempting to update documents in my mongoDB database using JavaScript. I understand that forms typically only support post/get methods, which has limitations. Therefore, I am looking for an alternative method to successfully update the document.
One approach I tried was using a hidden input field with values "_method" and "patch", but unfortunately, it did not yield the desired result.
In my database structure, I have organized data in a table format and included an "edit" button. Ideally, clicking this button would trigger an update process on the document simply by submitting new information.