0xPlaygrounds / 0xPlaygrounds/subgrounds
Shorthand to query all entities
- 主要语言
- Python
- 星标
- 73
- 派生
- 12
- PR 合并指标
- 30 天内没有已合并 PR
描述
**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*
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- graphql, python
- 领域
- api, backend
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100