Hi. I was trying to insert data onto the DB with python.
I can connect to DB following this:
https://docs.moralis.io/moralis-dapp/database/direct_access
But when I wanted to insert data doesnât seem to work:
client = pymongo.MongoClient(MONGO_HOST, MONGO_PORT)
db = client[ âtestDBâ ]
col = db[ âtestColâ ]
result = col.insert_one( {âfooâ : âbarâ })
print(result)
The result canât be found on the DB browser interface.