0xPlaygrounds / 0xPlaygrounds/subgrounds

Ranged Pagination

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
73
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, python
領域
backend, data
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。