chat_id. When you open chat 42, the router reads that ID from the query and looks up which shard owns it. When you ask which chats a user has joined, the answer can span several shards. You can see both cases in the demo.
Run your first query
Start two shards on your laptop, open a chat, and see which shard answered.