What is the correct way for implementing server side rendering database connections under varying IP addresses in production settings?
you could use a proxy that has a static IP, or you could use Moralis SDK to make queries in db and not connecting directly to DB (you can use master key server side)
Thanks for you fast feedback! Will give that a try
Works like a charm with the Moralis SDK. Great work!
I feel like a 2 or 3 minute video would be very helpful for this. Iâm spending hours on this and still no luck. Like where do you put the python script query? in the database api?
there is such a small amount of official documentation on this compared to some other topics. one little paragraph and a couple forum posts
The python script you can run it locally after you whitelisted your public IP. You can use any other language to connect to mongo db. Or any other tool.
ok when i try to add an ip for whitelist and hit save it doesnât do anything
Try a logout and login again
I also keep getting an âerror sycning plugins: invaled token requestâ
awesome! i was able to add an IP. now to figure out what the issue is nowâŚ
i type import pprint locally and get error
What error? Did you install python?
Yes I have downloaded and installed. Not sure what if I need to type any more prompts to fully install the package. it says âimportâ is not recognized aha
I was supposed to go to mongo website and make a cluster, correct? Or was that part unnecessary?
what do you want to do? you donât need necessarily to go to mongo website if you only want to connect to mongo db
i want to view and manipulate the data. add counter columns
ok, it may be easier to use Moralis SDK directly, look in dashboard interface, if you donât have too much experience in programming
it says reference admin settings for host and port, but all i see is IP. I assume thatâs one of the two
Alright I am now connected on python! The example query just returns one item, not what iâm looking for exactly. But very glad to have figured out the connection part!