concept empty collection in category mongoDB

appears as: n empty collection
MongoDB in Action, Second Edition: Covers MongoDB version 3.0

This is an excerpt from Manning's book MongoDB in Action, Second Edition: Covers MongoDB version 3.0.

Sharding an empty collection

This sharded collection definition may remind you of something: it looks a bit like an index definition, especially with its unique key. When you shard an empty collection, MongoDB creates an index corresponding to the shard key on each shard.[7] Verify this for yourself by connecting directly to a shard and running the getIndexes() method. Here you connect to your first shard, and the output contains the shard key index, as expected: