rajiv-v
3/27/2016 - 2:33 AM

M101JS Week2 Challenge1 Sample Insert

M101JS Week2 Challenge1 Sample Insert

db.movieTest.insertMany([{
  "title": "Dead Poets Society",
  "year": 1989,
  "rated": "PG",
  "runtime": 128,
  "countries": [
    "USA"
  ],
  "genres": [
    "Comedy",
    "Drama"
  ],
  "director": "Peter Weir",
  "writers": [
    "Tom Schulman"
  ],
  "actors": [
    "Robin Williams",
    "Robert Sean Leonard",
    "Ethan Hawke",
    "Josh Charles"
  ],
  "plot": "English teacher John Keating inspires his students to discover their love for poetry and seize the day.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BMzA5MTE0NTUwOV5BMl5BanBnXkFtZTgwOTgyMDUxMDE@._V1_SX300.jpg",
  "imdb": {
    "id": "tt0097165",
    "rating": 8,
    "votes": 259878
  },
  "tomato": {
    "meter": 85,
    "image": "certified",
    "rating": 7.2,
    "reviews": 54,
    "fresh": 46,
    "consensus": "Affecting performances from the young cast and a genuinely inspirational turn from Robin Williams grant Peter Weir's prep school drama top honors.",
    "userMeter": 92,
    "userRating": 3.8,
    "userReviews": 304924
  },
  "metacritic": 79,
  "awards": {
    "oscars" : [
        {"award": "bestWritingScreenplayWrittenDirectlyForTheScreen", "result": "won"},
        {"award": "bestPicture", "result": "nominated"},
        {"award": "bestActorInALeadingRole", "result": "nominated"},
        {"award": "bestDirector", "result": "nominated"}
    ],
    "wins": 17,
    "nominations": 18,
    "text": "Won 1 Oscar. Another 17 wins & 18 nominations."
  },
  "type": "movie"
},
{
  "title": "Alien",
  "year": 1979,
  "rated": "R",
  "runtime": 117,
  "countries": [
    "USA",
    "UK"
  ],
  "genres": [
    "Horror",
    "Sci-Fi"
  ],
  "director": "Ridley Scott",
  "writers": [
    "Dan O'Bannon",
    "Ronald Shusett",
    "Dan O'Bannon"
  ],
  "actors": [
    "Tom Skerritt",
    "Sigourney Weaver",
    "Veronica Cartwright",
    "Harry Dean Stanton"
  ],
  "plot": "The commercial vessel Nostromo receives a distress call from an unexplored planet. After searching for survivors, the crew heads home only to realize that a deadly bioform has joined them.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BMTU1ODQ4NjQyOV5BMl5BanBnXkFtZTgwOTQ3NDU2MTE@._V1_SX300.jpg",
  "imdb": {
    "id": "tt0078748",
    "rating": 8.5,
    "votes": 527017
  },
  "tomato": {
    "meter": 97,
    "image": "certified",
    "rating": 9,
    "reviews": 100,
    "fresh": 97,
    "consensus": "A modern classic, Alien blends science fiction, horror and bleak poetry into a seamless whole.",
    "userMeter": 94,
    "userRating": 3.9,
    "userReviews": 453948
  },
  "metacritic": 83,
  "awards": {
    "oscars" : [
        {"award": "bestEffectsVisualEffects", "result": "won"},
        {"award": "bestArtDirection-SetDecoration", "result": "nominated"}
    ],
    "wins": 15,
    "nominations": 19,
    "text": "Won 1 Oscar. Another 15 wins & 19 nominations."
  },
  "type": "movie"
},
{
  "title": "All Quiet on the Western Front",
  "year": 1930,
  "rated": "UNRATED",
  "runtime": 136,
  "countries": [
    "USA"
  ],
  "genres": [
    "Drama",
    "War"
  ],
  "director": "Lewis Milestone",
  "writers": [
    "Erich Maria Remarque",
    "Maxwell Anderson",
    "George Abbott",
    "Del Andrews",
    "C. Gardner Sullivan"
  ],
  "actors": [
    "Louis Wolheim",
    "Lew Ayres",
    "John Wray",
    "Arnold Lucy"
  ],
  "plot": "A young soldier faces profound disillusionment in the soul-destroying horror of World War I.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BNTM5OTg2NDY1NF5BMl5BanBnXkFtZTcwNTQ4MTMwNw@@._V1_SX300.jpg",
  "imdb": {
    "id": "tt0020629",
    "rating": 8.1,
    "votes": 45511
  },
  "awards": {
    "oscars" : [
        {"award": "bestPicture", "result": "won"},
        {"award": "bestDirector", "result": "won"},
        {"award": "bestWriting", "result": "nominated"},
        {"award": "bestCinematography", "result": "nominated"}
    ],    
    "wins": 5,
    "nominations": 2,
    "text": "Won 2 Oscars. Another 5 wins & 2 nominations."
  },
  "type": "movie"
},
{
  "title": "Midnight Cowboy",
  "year": 1969,
  "rated": "X",
  "runtime": 113,
  "countries": [
    "USA"
  ],
  "genres": [
    "Drama"
  ],
  "director": "John Schlesinger",
  "writers": [
    "Waldo Salt",
    "James Leo Herlihy"
  ],
  "actors": [
    "Dustin Hoffman",
    "Jon Voight",
    "Sylvia Miles",
    "John McGiver"
  ],
  "plot": "A naive hustler goes to New York to seek personal fortune but in the process finds himself a new friend.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BMTMzMjY1OTE5OV5BMl5BanBnXkFtZTcwMjUzNTk3NA@@._V1_SX300.jpg",
  "imdb": {
    "id": "tt0064665",
    "rating": 7.9,
    "votes": 72407
  },
  "awards": {
    "oscars" : [
        {"award": "bestPicture", "result": "won"},
        {"award": "bestDirector", "result": "won"},
        {"award": "bestWritingScreenplayBasedOnMaterialFromAnotherMedium", "result": "won"},
        {"award": "bestActorInALeadingRole", "result": "nominated"},
        {"award": "bestActressInASupportingRole", "result": "nominated"},
        {"award": "bestFilmEditing", "result": "nominated"}
    ],
    "wins": 24,
    "nominations": 15,
    "text": "Won 3 Oscars. Another 24 wins & 15 nominations."
  },
  "type": "movie"
},
{
  "title": "The Cowboy and the Lady",
  "year": 1938,
  "rated": "PASSED",
  "runtime": 91,
  "countries": [
    "USA"
  ],
  "genres": [
    "Comedy",
    "Drama",
    "Romance"
  ],
  "director": "H.C. Potter, Stuart Heisler, William Wyler",
  "writers": [
    "S.N. Behrman",
    "Sonya Levien",
    "Leo McCarey",
    "Frank R. Adams"
  ],
  "actors": [
    "Gary Cooper",
    "Merle Oberon",
    "Patsy Kelly",
    "Walter Brennan"
  ],
  "plot": "When a beautiful socialite masquerades as a maid, she becomes involved with an unpretentious, plain-spoken cowboy who's unaware of her true identity.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BMTg2ODE1NDc5OV5BMl5BanBnXkFtZTcwNTcwMjIyMQ@@._V1_SX300.jpg",
  "imdb": {
    "id": "tt0030018",
    "rating": 6.7,
    "votes": 762
  },
  "awards": {
    "oscars" : [
        {"award": "bestSound", "result": "won"},
        {"award": "bestMusicOriginalScore", "result": "nominated"},
        {"award": "bestMusicOriginalSong", "result": "nominated"}
    ],
    "wins": 0,
    "nominations": 2,
    "text": "Won 1 Oscar. Another 2 nominations."
  },
  "type": "movie"
},
{
  "title": "Top Gun",
  "year": 1986,
  "rated": "PG",
  "runtime": 110,
  "countries": [
    "USA"
  ],
  "genres": [
    "Action",
    "Drama",
    "Romance"
  ],
  "director": "Tony Scott",
  "writers": [
    "Jim Cash",
    "Jack Epps Jr.",
    "Ehud Yonay"
  ],
  "actors": [
    "Tom Cruise",
    "Kelly McGillis",
    "Val Kilmer",
    "Anthony Edwards"
  ],
  "plot": "As students at the United States Navy's elite fighter weapons school compete to be best in the class, one daring young pilot learns a few things from a civilian instructor that are not taught in the classroom.",
  "poster": "http://ia.media-imdb.com/images/M/MV5BMTY3ODg4OTU3Nl5BMl5BanBnXkFtZTYwMjI1Nzg4._V1_SX300.jpg",
  "imdb": {
    "id": "tt0092099",
    "rating": 6.9,
    "votes": 207728
  },
  "awards": {
    "oscars" : [
        {"award": "bestMusic", "result": "won"},
        {"award": "bestSound", "result": "nominated"},
        {"award": "bestFilmEditing", "result": "nominated"},
        {"award": "bestEffects", "result": "nominated"}
    ],
    "wins": 9,
    "nominations": 5,
    "text": "Won 1 Oscar. Another 9 wins & 5 nominations."
  },
  "type": "movie"
}])