0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
73
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**
## Description
Subgrounds should be able to paginate based on a condition (e.g.: get all Uniswap V2 swaps between time `t0` and time `t1`, get all Aave V2 USDC borrows larger than `amount`).

**Describe the solution you'd like**
The following subgrounds fieldpath implies the use of pagination even though no `first` argument is present

```python
swaps = uniswapV2.Query.swaps(
orderBy=uniswapV2.Swap.timestamp,
orderDirection='desc',
where=[
uniswapV2.Swap.timestamp >= 1641013200
]
)
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Look at the pagination logic in the subgrounds codebase, likely in query building or GraphQL client modules. Understand how arguments like 'first' are currently handled. The feature requires modifying the query generation to support range-based pagination using 'where' conditions without a 'first' argument. Check existing tests for pagination to see the expected behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
graphql, python
Ambito
backend, data
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.