A developer’s cheat sheet for getting up to speed with subgraphs in 15 minutes

Learn more at

Anatomy of a Subgraph

<aside> 💡 Note: The subgraph folder structure includes several other files and folders such as generated, node_modules, build, etc. The above list only delineates the files that are involved in the subgraph definition process.


Up-and-vibing with your first subgraph!

Installing the Graph CLI

Initializing your subgraph

graph init --index-events

<aside> 💡 Currently, the product option subgraph-studio is only available for subgraphs on Ethereum Mainnet