Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var rec = new Recommendation({rating: 5,
  2.                       comment: "My Favourite Restaurant!",
  3.                       restaurants: restaurants[0]._id,
  4.                       user: "Batman"})
  5.   rec.save();
  6.   restaurants[0].recommendation.push( rec );
  7.  
  8.   rec =  new Recommendation({rating: 4,
  9.                       comment: "I like it, but Batman is always there =(!",
  10.                       restaurants: restaurants[0]._id,
  11.                       user: "Superman"})
  12.  
  13.   rec.save();
  14.   restaurants[0].recommendation.push( rec );
  15.  
  16.   rec =  new Recommendation({rating: 0,
  17.                       comment: "You call that a tortilla!",
  18.                       restaurants: restaurants[0]._id,
  19.                       user: "HaterDude"})
  20.  
  21.   rec.save();
  22.   restaurants[0].recommendation.push( rec );
  23.   restaurants[0].save()
  24.  
  25.  
  26. rec = new Recommendation({rating: 4,
  27.                       comment: "I was feeling Fishy after this!",
  28.                       restaurants: restaurants[1]._id,
  29.                       user: "Fisherman"})
  30.   rec.save();
  31.   restaurants[1].recommendation.push( rec );
  32.  
  33.   rec =  new Recommendation({rating: 3,
  34.                       comment: "It was good, but the ancient taste was expensive!",
  35.                       restaurants: restaurants[1]._id,
  36.                       user: "Dijkstra the Greedy"})
  37.  
  38.   rec.save();
  39.   restaurants[1].recommendation.push( rec );
  40.  
  41.   rec =  new Recommendation({rating: 4,
  42.                       comment: "Cali roll is the best!",
  43.                       restaurants: restaurants[1]._id,
  44.                       user: "John"})
  45.  
  46.   rec.save();
  47.   restaurants[1].recommendation.push( rec );
  48.   restaurants[1].save()
  49.  
  50.  
  51.   rec = new Recommendation({rating: 2,
  52.                       comment: "Stop hurting the chicken! Eat green!",
  53.                       restaurants: restaurants[3]._id,
  54.                       user: "Daughter Nature"})
  55.   rec.save();
  56.   restaurants[3].recommendation.push( rec );
  57.  
  58.   rec =  new Recommendation({rating: 5,
  59.                       comment: "Stop hurting plants! Buy Special Combo",
  60.                       restaurants: restaurants[3]._id,
  61.                       user: "Jeremy Cubicle"})
  62.  
  63.   rec.save();
  64.   restaurants[3].recommendation.push( rec );
  65.  
  66.   rec =  new Recommendation({rating: 4,
  67.                       comment: "Fast service, that was nice",
  68.                       restaurants: restaurants[3]._id,
  69.                       user: "Flash"})
  70.  
  71.   rec.save();
  72.   restaurants[3].recommendation.push( rec );
  73.   restaurants[3].save()
  74.  
  75.  
  76.   rec = new Recommendation({rating: 5,
  77.                       comment: "So romantic! #inlove #yumyum #CrepeRules #Fancy",
  78.                       restaurants: restaurants[4]._id,
  79.                       user: "Emily"})
  80.   rec.save();
  81.   restaurants[4].recommendation.push( rec );
  82.  
  83.   rec =  new Recommendation({rating: 5,
  84.                       comment: "It is affordable and girls think its fancy, win",
  85.                       restaurants: restaurants[4]._id,
  86.                       user: "Emily's Cutie-Pie"})
  87.  
  88.   rec.save();
  89.   restaurants[4].recommendation.push( rec );
  90.   restaurants[4].save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement