I have read few posts on StackOverflow regarding the cloneCollection
database command. It indeed works just fine from the shell.
But is there a way to run the cloneColection
using the C# Mongo Client?
I've tried:
local_database.RunCommand<BsonDocument>("{ cloneCollection : \"<collection>\", from: \"<server>:27017\" }"
I do get an Ok
response, but nothing happens...