Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subgraph should expose field like lastUpdatedAt to identify if new data is synced #95

Open
stevepro-lab opened this issue Feb 4, 2021 · 4 comments

Comments

@stevepro-lab
Copy link

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.

@davekaj
Copy link
Contributor

davekaj commented Feb 5, 2021

It should be easy to add this in in the next subgraph update!

@abhayait
Copy link

abhayait commented Feb 5, 2021

@davekaj will lastUpdatedAt be at entity level or entity_row level?

@juanmardefago
Copy link
Collaborator

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?

@abhayait
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants