# Parse a supergraph to get subgraphs?

**URL:** <https://community.apollographql.com/t/parse-a-supergraph-to-get-subgraphs/5789>\
**Category:** Schema Design\
**Tags:** federation, rover\
**Created:** [February 23, 2023, 1:30pm UTC](https://community.apollographql.com/t/parse-a-supergraph-to-get-subgraphs/5789 "2023-02-23T13:30:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robinpersson](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@robinpersson](https://community.apollographql.com/u/robinpersson)\
**Post date:** [February 23, 2023, 1:30pm UTC](https://community.apollographql.com/t/parse-a-supergraph-to-get-subgraphs/5789/1 "2023-02-23T13:30:29Z")

</div>

Hi,  
Is there any way to get which subgraphs a supergraph has?  
And I mean not through apollo studio.  
Can this be done through rover or is there any other tool that can parse a supergraph?  
Sure, you can introspect the supergraph and then look for this in the file, but we need this to be done with bash script or similar.

enum join\_\_Graph {  
SUBGRAPHA @join\_\_graph(name: “subgraph\_a”, url: “https://subgraph\_a\_url”)  
SUBGRAPHB @join\_\_graph(name: “subgraph\_b”, url: “https://subgraph\_b\_url”)  
}
