how can i delete/update author name if book name is updated or deleted using RESTapi

156 views Asked by At

CREATE A REST API a. Create a database using NODE.JS AND MONGODB containing two tables Books and Authors. Add appropriate columns to the tables. Every book has a single author and referential integrity should be maintained

b. Create a Rest API which supports the following operations: i. Insert, update and select on Books i. Handle exception for adding Authors who are not present in the table.

cannot understand how can i delete author name if book name is updated or deleted

1

There are 1 answers

2
obeda On

I do not think I understand you question well, maybe you can give more information or add the code but if you are asking about how you can delete changed or updated book you simply can't if you don't know the correct name of the author just in real life if you are searching for a book you need the real name