How to Query MongoDB Secondary Replica Set Members

A common gotcha when first starting with MongoDB is that trying to query secondary replica set members (secondaries) does not seem to work. For example, when issuing a simple query the user may be surprised to see errors such as: Error: error: { "$err" : "not master and slaveOk=false", "code" : 13435 } The gotcha [...]