Skip to Content
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


This is my data-model for Book table


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.


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.