-
Create MongoDB using the csv files. One collection per file. Define database schema. Data is given in Here
-
Create end-point to add new entry
Input format
{ "movie_id" : String, "title" : String, . . . "budget" : Number, "genres" : Array, "homepage" : Array, . . . "vote_average" : Number, "vote_count" : Number }
-
Create end-pont which populates profit earned by production house in a given year. Here profit is calculated as [Revenue - Budget].
Output format
{ "<name of production_company_1>" : <profit_1>, "<name of production_company_2>" : <profit_2>, . . . "<name of production_company_n>" : <profit_n> } Note: Assume, Revenue and Budget are ditributed equaly over all production companies for a given movie.
sid18996 / monogodb-query-app Goto Github PK
View Code? Open in Web Editor NEWA node.js application to perform datbase query