1Hive / apiary

Aragon DAO explorer
https://apiary.1hive.org
GNU General Public License v3.0
25 stars 16 forks source link

Migrate to The Graph #200

Closed onbjerg closed 4 years ago

onbjerg commented 4 years ago

❗ THIS IS WORK IN PROGRESS ❗

After several different prototypes, I've landed on using the schema stitching feature of Apollo in conjunction with our own local type definitions to add things we store (like Apiary Profiles). This is a major breaking change of the API, since we rely on the pagination and filtering mechanism of The Graph, which is considerably different from ours.

This also means that some of the functionality on the website will have to be altered heavily or removed altogether.

Here's a tentative to do list:

Lite release

Full migration release

Missing things

There are some things that block us from completing the base functionality of the API:

App Mining

Currently there is no way to capture a meaningful activity metric using a subgraph. After some talk with The Graph team this might be changed in the near future, so for now this implementation disregards app mining altogether.

Preview

The API can be found at https://apiary-graph-oaa5c9gej21448vwi.herokuapp.com/