Actually I want to receive all data after for loop is done in database. In the code, req.body is user\'s object id values. If server receives 3 id values, it will response 3