You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Subgraph should expose field like lastUpdatedAt to identify if new data is synced #95
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.
@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?
Activity
davekay100 commentedon Feb 5, 2021
It should be easy to add this in in the next subgraph update!
abhayait commentedon Feb 5, 2021
@davekaj will
lastUpdatedAtbe at entity level or entity_row level?juanmardefago commentedon Jul 28, 2021
I think this one slipped through, right? @davekaj
@stevepro-lab your idea is to have a "global"
lastUpdatedAtwhich would let you know the last time any entity had changes within this subgraph? or would it be something like having alastUpdatedAtfield on all entities, so you can know if that specific entity has received any updates?abhayait commentedon Jul 30, 2021
@juanmardefago @davekaj I will recommend keeping
lastUpdatedAtat each entity row level.This way users will know the exact record/row which was updated.
What do you think?