How to enable mongodb query router for sharding

I am trying to implement sharding using mongodb. I found the below doc but I think it doesn’t mention how to enable the query router and how to use it for sharding purpose.

Can anyone please tell me how to enable mongodb query router?

thx