Compact a Collection

@Pavel_Duchovny Thank you! The suggestion to use the older connection string format was what I needed and worked like a charm. I was able to connect to the secondary in that way.

For others that may come across this, please note that I needed to remove the replicaSet= part of that string and also that I needed to run rs.secondaryOk() before I could operate on the secondary.

2 Likes