Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMongoDBConnection options to replica set

Hi,

 

I want to specify additional options to tMongoDBConnection like readPreference='secondary'.

 

Is there a way to pass a Connection String URI like

[mongodb://][user: pass@]host1[: port1][,host2[: port2],...][/database][?options] ?

 

Thanks,

Juan.

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

Are you getting "not master and slaveOk=false" when executing a replica set with ReadPreference = Secondary? What's Mongo DB version are you using?

Best regards

Sabrina