I am using MongoDB Atlas as my database.
I am using angular4 with loopback as api.
My application connects to my database fine. However, when I try to get data,
Make sure to whitelist the IP you are using to connect from the Mongo CLI to your DB. Do this under the project Network Access tab.