NodeJS or MongoDB limits responses to 1000?
I have a NodeJS application that connects to MongoDB. I use AngularJS on my front-end. The NodeJS app contains all my GET, POST, DELETE API. I have a GET request that returns my "Colleges" collection in full as a JSON response. This collection has 7771 documents and I only return the ID and Name as a JSON response.
When I run my application locally on my development environment, it works great and my GET's response is 7771 elements as JSON. When I uploaded my app and went live, I am seeing my GET's response is exactly 1000. What gives?
Does DigitalOcean put a limit on API responses? Or is it a configuration in my NodeJS or Mongod? If someone can point me to a configuration that would be great.
Note: I installed both NodeJS and Mongod using sudo-apt-get instead of the 1-click installs. I have a Ubuntu 14.4 droplet. I am newbie to cloud app development and hosting (doing it as a learning experience), so please forgive me if I'm my deployment choices are not standard.
P.S: I am still hosting NodeJS on port 3000 with a redirect on port 80. My GET requests are via AJAX to "/colleges" that may be going to port 80, not sure that makes a difference.
Re-routing done by:
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000