Fetching mongoDB data with lambda functions

Hey @braveux and @lilbigwheel! Linking this conversation which I think may be useful:

TL;DR There’s no way to whitelist an IP range for our functions because there’s no way to know which range they will be spun up on when they’re invoked. Our suggestions in the past have been to whitelist everyone but make sure you have a very strong MongoDB user password (and put your DB_URL in a Netlify environment variable)… or switch to FaunaDB.

Maybe not the answer you wanted to hear, but hopefully it’s helpful- let us know if you find workarounds or if we can answer any other questions on this!