Subgraph should expose field like lastUpdatedAt to Identify is new data is synced

Currently subgraph clients has no way to identify if any update is made in entities synced by a subgraph.
Field like lastUpdatedAt or lastUpdatedBlockNumber in Meta entity can be an indication to client that new data is synced by subgraph.

This will help subgraph clients to make decision on when to query data.

2 Likes

As i understand, such a thing coud be harmful to the determinism of the data. if the subgraph definition changes and in particular if it would require past data to be updated, it should be launched as a new subgraph.

If subgraph Definition changes then it will be a different subgraph all together(Different IPFS hash).

Can see any harm with that :thinking: