// Aula 5 - Trabalhando com shard zones

sh.status()

sh.addShardTag('shard0000', 'Zone-A')
sh.addShardTag('shard0001', 'Zone-B')
sh.addShardTag('shard0002', 'Zone-C')

sh.status()

sh.addTagRange('myShardedDB.users', {age: MinKey}, {age: 50},'Zone-A')
sh.addTagRange('myShardedDB.users', {age: 50}, {age: 54}, 'Zone-B')
sh.addTagRange('myShardedDB.users', {age: 54}, {age: MaxKey},'Zone-C')

sh.status()










