0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

Ouverte
#8 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
73
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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
]
)
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
graphql, python
Domaine
backend, data
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.