Details
Description
When a collection is sharded, a user can provide the "unique" option, which if true will ensure there exists an index with a uniqueness constraint with the same pattern as the proposed shard key. A user is not able to modify this property when refining a shard key, and this should be verified by inspecting the config.collections entry for both a unique=true and unique=false sharded collection after refining its shard key.