public void setReadPreference(ReadPreference readPreference) {
        this.readPreference = readPreference;
    }
Sets the read preference for this query

@param readPreference read preference
querydsl-mongodb/src/main/java/com/querydsl/mongodb/document/AbstractMongodbQuery.java