Change how we paginate the query for projects
- Dominant language
- TypeScript
- Stars
- 44
- Forks
- 48
- Avg merge
- 23m
- Merged PRs (30d)
- 3
Description
From @ryley-o
I think TheGraph limits skip to a maximum of 5000 items (last I checked).
I know we don't have even close to 5k projects yet, but can we follow the recommended pattern shown in their docs to paginate through projects, along the lines of:
`projects(first: 1000, where: { id_gt: $lastID })`
ref: https://thegraph.com/docs/en/developer/graphql-api/#pagination
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the projects GraphQL query and reviewing The Graph pagination documentation linked in the issue. Trace how the current query advances through projects, then verify that it uses the recommended first: 1000 and id_gt: $lastID pattern and continues retrieving projects beyond any skip limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100