Isolate traffic based on queries in apollo gateway

We want certain traffic to be isolated on a subgraph physically, does apollo gateway has the way to route traffic based on query called to different endpoints