Disconnect-MongoDB Cmdlet
Closes a connection to MongoDB.
Syntax
Disconnect-MongoDB [parameters]
Remarks
The Disconnect-MongoDB cmdlet is used to close a connection that was opened by the Connect-MongoDB cmdlet.
Disconnect-MongoDB -Connection $connection