To connect to any of your nodes whether a master or a secondary node, retrieve the connection string of the instance from the Task manager by clicking on MSDB Actions > Connection string.
NodeChef uses the below format for the database connection string.