graphprotocol / graphprotocol/graph-network-subgraph

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

Open
#95 4 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
82
Forks
47
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating the subgraph metadata entity and the sync or update path, then determine how the proposed timestamp should be exposed. Done means clients can reliably use the field to detect newly synced data, with coverage in the repository's existing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.