graph-network-subgraph icon indicating copy to clipboard operation
graph-network-subgraph copied to clipboard

Additional field request: `Subgraph.currentVersionIpfsHash`

Open fordN opened this issue 3 years ago • 1 comments

Background

The subgraph search on the explorer leaves a lot to be desired. Most indexers (and likely other participants too) use subgraph deployment ids as the identifier for a subgraph, so the lack of deployment id based search functionality feels like a glaring hole.

Proposed Solution

Until fulltext search functionality is able to span across multiple entity types we are limited to searching on Subgraph entity fields, so to support filtering subgraphs based on their deployment id I'd like to propose adding a new field to the Subgraph entity type which would contain the ipfs hash of the latest version deployment for that subgraph: Subgraph.currentVersionIpfsHash. Then this field can be included in the subgraphSearch fulltext search field here.

fordN avatar Mar 10 '22 20:03 fordN

While were at it there are a few other string fields in the Subgraph entity type that could be useful to include in the subgraphSearch field:

fordN avatar Mar 10 '22 20:03 fordN