Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Shorthand to query all entities #28

Open
cvauclair opened this issue Feb 19, 2022 · 1 comment
Open

Shorthand to query all entities #28

cvauclair opened this issue Feb 19, 2022 · 1 comment
Labels
enhancement New feature or request in progress

Comments

@cvauclair
Copy link
Contributor

Description

Create a special value ALL that can be used as the first argument in list queries to fetch all entities.

Example

swaps = uniswapV2.Query.swaps(
  orderBy=uniswapV2.Swap.timestamp,
  orderDirection='desc',
  first=ALL
)
@cvauclair cvauclair added the enhancement New feature or request label Feb 19, 2022
@Evan-Kim2028
Copy link

Evan-Kim2028 commented Nov 21, 2022

Is this to fetch all graphql records in a single query?

For example - default is to query first 100 rows. Would ALL query all existing rows?

Or rather, suppose you have field objects 'timestamp', 'id', and 'amount'. Then would ALL be used to get all of the field objects?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request in progress
Projects
None yet
Development

No branches or pull requests

2 participants