0xPlaygrounds / subgrounds

An intuitive Python library for interfacing with subgraphs and GraphQL
http://docs.playgrounds.network
Apache License 2.0
50 stars 8 forks source link

Shorthand to query all entities #9

Open 0xMochan opened 1 year ago

0xMochan commented 1 year ago

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

swaps = uniswapV2.Query.swaps(
  orderBy=uniswapV2.Swap.timestamp,
  orderDirection='desc',
  first=ALL
)

Originally from: cvauclair