Thanks again, Jeff, I appreciate the eyes on it. That’s interesting, as I would also expect it to work, but I keep getting an authn error with both the embedded URI and the credential object. I used the starter python example, and that works fine, so something is amuck in java, but I don’t know what. I am a partner of Mongo’s with a tech talk tomorrow and wanted to use MongoDB as a sink in a demo, but the java piece has taken too many cycles. I am sure it is me and something simple I am missing, but I will just use python with Flask for a web part of the demo. This works…
>>> from pymongo import MongoClient
>>> CONNECTION_STRING = "mongodb+srv://retail-user:*************@cluster0.********.mongodb.net/Cluster0"
>>> client = MongoClient(CONNECTION_STRING)
>>> dbname = client['Cluster0']
>>> collection_name = dbname["inventory"]
>>> item_details = collection_name.find_one()
>>> for item in item_details:
... print(item)
...
_id
TS
SKU
QUANTITY
TYPE
>>>