Running DB queries from backend

I need to load a few external user records down to my Moralis DB. I thought I could use the Query API using the master key from a lambda function on AWS to do that.

I tried to start it with Moralis.start({ serverUrl, appId, masterKey }) although it fails saying localStorage is undefined.

What is the best option for me in this case?

Thanks

you could connect directly to mongo db from your local system: How to do database backups?

1 Like