0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

Abierto
#8 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Python
Estrellas
73
Forks
12
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
graphql, python
Área
backend, data
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.