How to create a subgraph for a UUPS upgradeable contract?

What are the steps involved in creating a subgraph for a UUPS upgradeable contract? An OZ guide to developing subgraphs for dynamically created contracts would be very helpful (the one on TheGraph docs is a bit unclear in this regard).