I recently tried to use a MongoDB Atlas instance with Netlify Functions and couldn't seem to connect to the database (I could locally). Here's why,...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for this info
What!!!!!!!!!! You really really really really save my time! After a very long journey. The should have make it as default and optionally allow to specify IP for better security.
What if i only need access from my frontend application ?
You shouldn't be making requests directly to a database from the frontend, as it will provide folks with the credentials required to access your database.
So, how we show the data for the user? example fetching a table posts etc!! Do you have any docs link to read more about that !!
You can use a Netlify function for this. The finished flow would be something like:
Hope this helps
Saved time before hunting IP addresses!
I'm glad you are saved the time I spent doing the same 🤣
Thanks for this! It would've taken waaaaaay longer than it already did for me to get to this conclusion! 🙏
You’re very welcome!
You really save my day!!!
This helped me greatly. Thank you very much.