Though it sounds simple and straightforward, this thing killed a lot of my time at the initial time of getting into node JS.

the query string is directly available in the request for both get and post methods but to get the post data you send in JSON format you need to update your express JS index.js . In the root of your express JS setup, you have index.js add the following line on the top after the creation of an app.

app.use(express.json());

Now you will be able to access the JSON data in the post request in req.body

If you are facing the same issue with your form submits, please follow the link for the solution.