Skip to content

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

Open

Description

@stevepro-lab

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.

Activity

  1. davekay100 commented on Feb 5, 2021

    @davekay100
    Contributor

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

  2. abhayait commented on Feb 5, 2021

    @abhayait

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

  3. juanmardefago commented on Jul 28, 2021

    @juanmardefago
    Contributor

    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?

  4. abhayait commented on Jul 30, 2021

    @abhayait

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions