Skip to Content
0
Mar 20 at 04:09 AM

Insert statement not working NodeJs CAPM for POST request

433 Views Last edit Mar 22 at 07:54 AM 2 rev

image.png

This is my data-model for Book table

screenshot-2023-03-20-092844.png

CREATE request for Book table

Here I want to auto increment BooksId without passing it in postman, I can see maxId in console but not inserting in table.

screenshot-2023-03-20-092815.png

BooksId is null,

I want to auto increment BooksId in Book table through JS and dont want to pass through postman, I am beginner in CAPM please correct where I am doing wrong.