The Graph library for building GraphQL-based dapps in a decentralized way.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
063dc0b: #### Auto Pagination Transform
graph-client
implements automatic pagination using first:
and after:
filters of graph-node
.
At the moment, graph-node
allow fetching only 1000 records per query. This transfomer allow you to run queries with any limit, and the breaks it automatically to multiple concurrent requests, then merges the responses into a single response.
This feature is implemented in @graphprotocol/client-auto-pagination
and installed automatically with the graph-client
CLI package.
# .graphclientrc.yml
sources:
- name: uniswap
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
transforms:
- autoPagination:
validateSchema: true # Validates that the schema source actually contains the required input filters.
limitOfRecords: 1000 # Default is 1000, you can change if you indexer has different configuration in GRAPH_GRAPHQL_MAX_FIRST var.
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
063dc0b: #### Block Tracking Transform
graph-client
implements automatic block tracking using number_gte
filter of graph-node
. This automates the process of fetching and tracking the block number of entites.
This feature is implemented in @graphprotocol/client-block-tracking
and installed automatically with the graph-client
CLI package.
# .graphclientrc.yml
sources:
- name: uniswap
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
transforms: # The following section will make sure to automatically fetch the block information, and then use it for tracking in future queries.
- blockTracking:
validateSchema: true # Validates that the schema source actually contains _meta and input block filters.
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
index.ts
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago