Mongoose object modeling for AngularJS