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
Makes this node immutable.
Link copied to clipboard
Reads the value of this option.
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 document.
Link copied to clipboard
Writes the result of simplifying this expression into writer.