Cmdlets for MongoDB

Build 25.0.9434

WriteConcernTimeout Parameter (Connect-MongoDB Cmdlet)

The WriteConcernTimeout property specifies the maximum time (in milliseconds) that the server should wait for a write concern to be acknowledged before returning an error.

Syntax

Connect-MongoDB -WriteConcernTimeout string

Data Type

cstr

Default Value

"0"

Remarks

This property specifies the level of acknowledgment requested from MongoDB for write operations, such as INSERT, UPDATE, and DELETE. If a timeout is set for a write operation in MongoDB, it can wait to confirm the write on secondary nodes. If it times out, a write concern error occurs, but the write can still succeed on the primary node.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434