0xPlaygrounds / 0xPlaygrounds/subgrounds

Shorthand to query all entities

Abierto
#9 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
Create a special value `ALL` that can be used as the `first` argument in list queries to fetch all entities.

**Describe the solution you'd like**
## Example
```python
swaps = uniswapV2.Query.swaps(
orderBy=uniswapV2.Swap.timestamp,
orderDirection='desc',
first=ALL
)
```

*Originally from: cvauclair*

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Look at the query building logic in subgrounds, likely in a module like query.py or client.py. Understand how the 'first' argument is currently handled and parsed. The change involves adding a special constant (like ALL) that bypasses the typical pagination limit. Check existing tests for query construction to see how to add this feature and ensure it integrates with the GraphQL request generation.

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

Evaluación

Stack tecnológico
graphql, python
Área
api, backend
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.