https://www.mongodb.com/es/docs/upcoming/reference/command/shardingstate/
shardingState (database command) - Database Manual - MongoDB Docs
Determine if a `mongod` instance is part of a sharded cluster using the `shardingState` command.
databasecommandmanualmongodbdocs