SlaveOK Parameter (Connect-MongoDB Cmdlet)
This property sets whether the provider is allowed to read from secondary (slave) servers.
Syntax
Connect-MongoDB -SlaveOK SwitchParameter
Data Type
bool
Default Value
false
Remarks
This property sets whether the cmdlet is allowed to read from secondary (slave) servers in a replica set. You can fine-tune how the cmdlet queries secondary servers with ReadPreference.