Cmdlets for MongoDB

Build 24.0.9060

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.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060