readPreference
Specifies the ReadPreference for this operation.
collections.find(
options = {
readPreference(ReadPreference.SecondaryPreferred)
}
) {
User::name eq "David"
}
Content copied to clipboard
Specifies the ReadPreference for this operation.
collections.find(
options = {
readPreference(ReadPreference.SecondaryPreferred)
}
) {
User::name eq "David"
}