dao-profile.json represents data that is not ever on-chain. It is not stored in the contract. We make a call to the Poster contract and that event emits
.json. We are standardizing that
.json so we can listen to that Poster contract and see when somebody makes a call to it with a certain tag we can map that data into the subgraph. It also allows us to do validation inside the subgraph. We can make sure it matches the schema, we can make sure the person sending the transaction is a member of the DAO or are making the call through a DAO vote like in a ratification.
Record can be used for any type of table. Right now we have the DAO profile data in a table. Soon we will have boosts and themes.
Using the subgraph in this way has allowed us to replace centralized databases.