morpho-org / morpho-blue-subgraph

📈 A Morpho Blue Subgraph implementing the Messari schema for Lending protocol
MIT License
1 stars 4 forks source link

Testing aggregations in subgraphs #11

Open alex-pakalniskis opened 6 months ago

alex-pakalniskis commented 6 months ago

Hey morpho-org,

I see that you're manually generating daily aggregations in your subgraph: https://github.com/search?q=repo%3Amorpho-org%2Fmorpho-blue-subgraph%20daily&type=code

We've recently released support for generating aggregations via the GraphQL schema: https://github.com/graphprotocol/graph-node/blob/master/docs/aggregations.md

I think this new feature might improve your DX. We'd love for you to try out aggregations in your subgraph and let us know what you think.

Best and thanks, Alex (PM @ Edge & Node, working on The Graph)

julien-devatom commented 6 months ago

Hey @alex-pakalniskis, thank you for this update. Congrats for this feature, Ive been waiting for this for years! I'll check to implem it to our subgraphs soon.

alex-pakalniskis commented 6 months ago

@julien-devatom thanks! Looking forward to hearing how it goes. Hope it simplifies your workflow/code.