graph-network-subgraph
graph-network-subgraph copied to clipboard
Subgraph should expose field like `lastUpdatedAt` to identify if new data is synced
Currently subgraph clients has no way to identify if any update is made in entities synced.
Field like lastUpdatedAt 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.
This field can exists at subgraph level possible under _Meta_ entity.
It should be easy to add this in in the next subgraph update!
@davekaj will lastUpdatedAt be at entity level or entity_row level?
I think this one slipped through, right? @davekaj
@stevepro-lab your idea is to have a "global" lastUpdatedAt which would let you know the last time any entity had changes within this subgraph? or would it be something like having a lastUpdatedAt field on all entities, so you can know if that specific entity has received any updates?
@juanmardefago @davekaj I will recommend keeping lastUpdatedAt at each entity row level.
This way users will know the exact record/row which was updated.
What do you think?