ReadPreferenceOption
class ReadPreferenceOption(val concern: ReadPreference, context: BsonContext) : AbstractOption(source)
Specifies the read preference for an operation.
To learn more about read preferences, see ReadPreference. To apply this option, see WithReadPreference.
Properties
Functions
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new Bson.
Link copied to clipboard
Writes the result of simplifying this expression into writer.