I read a lot the MongoDB documentation, but I couldn't understand the difference between readConcern and readPreference options.

For example: what is the result if I set 'majority' in my read concern option and 'primary' as a my read preference option? These two options seems contraditory.

I know that at query level I can only set the readConcern preference, but at client level I can set readPreference also.