0xPlaygrounds / 0xPlaygrounds/subgrounds

Shorthand to query all entities

Ouverte
#9 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
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*

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

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

Évaluation

Stack technique
graphql, python
Domaine
api, backend
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

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