Errors in MongoDB+NodeRED-Watson

#1

I am using mondo on watson node red.
I searched for services on watson and i found that "Compose for MongoDB" is available. I tried to copy the information in the URI into my mongodb node, but nothing is happining. i can not retreive or store any data.
here is the URI:


here is the mongodb node configuration i used in the mongodb node:
sl-us-south-1-portal.18.dblayer.com 44195 compose MongoTest admin NTJXXZXHRHWXROYI

And, here is the flow example. here i am injecting "Hi" and using the option save in the mongodb node. and in the other fow i am using find, but nothing printed!!
[{"id":"7e445c22.8c27c4","type":"mongodb in","z":"43ab69d1.e4fb18","service":"ext","mongodb":"b0be9fd5.f2c12","name":"","collection":"testWork","operation":"find","x":510,"y":580,"wires":[["9630cd4b.953eb"]]},{"id":"88b5096e.0bddc8","type":"inject","z":"43ab69d1.e4fb18","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":580,"wires":[["7e445c22.8c27c4"]]},{"id":"9630cd4b.953eb","type":"debug","z":"43ab69d1.e4fb18","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":850,"y":580,"wires":},{"id":"19f94ed6.b137f1","type":"mongodb out","z":"43ab69d1.e4fb18","service":"ext","mongodb":"b0be9fd5.f2c12","name":"","collection":"testWork","payonly":true,"upsert":false,"multi":false,"operation":"store","x":510,"y":500,"wires":},{"id":"31090318.cd7c4c","type":"debug","z":"43ab69d1.e4fb18","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":410,"y":440,"wires":},{"id":"2b2285d5.cdadea","type":"inject","z":"43ab69d1.e4fb18","name":"","topic":"","payload":"HIIII","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":150,"y":480,"wires":[["19f94ed6.b137f1","31090318.cd7c4c"]]},{"id":"b0be9fd5.f2c12","type":"mongodb","z":"","hostname":"sl-us-south-1-portal.18.dblayer.com","port":"44195","db":"compose","name":"bmix-dal-yp-8dc5d149-86e7-4918-8e08-1fd073aee30b"}]

0 Likes