I am trying to make a js program that can interact with an external database (hosted online) and 1) add new fields or 2) add to the number in an existing field.
I wants to make the database with 2 columns (lets say ‘name’ and ‘quantity’), and I want the js program be able to either add a new item to the database and set the quantity for that new item to 1, or increase the quantity of an item already in the database by 1. How can I do that on the side of the js program, and how do I do that on the side of the database? I have a basic knowledge of js from web development, but I’ve only worked with Django (the python web framework) so I don’t know how to do anything with databases. Thanks!