I'm developing a MEAN stack application that essentially provides an interface to make navigating through my database more straightforward. I'm fairly new to express/Node.js/AngularJS but I'm looking for a way to delete multiple items from my MongoDB through a single AngularJS $http request to my express/Node.js server.
The following works for deleting a single element from my database, but what I want to do is essentially pass an array of objects to remove from my database so I don't have to make multiple requests and speed up the process. Is there a way to do this?
$http.delete('./api/db/'+opp_id)
.success(function(data){
$scope.items = data;
})
.error(function(data){
console.log("ERROR: " + data);
});