-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query historical data by block range - initial changes (#1887) #2540
base: main
Are you sure you want to change the base?
query historical data by block range - initial changes (#1887) #2540
Conversation
Hey, can you give this PR changes a brief look, I will get time to work on this only during coming weekend AND I might get some queries about the requirements when nobody online will be around, Queries of below type is implemented currently (perhaps partially).
. Further we need below types also right ??
. What further requirements/any sample responses/queries expected to cover are needed do tell, thanks.. |
82d4ba4
to
40d1a6d
Compare
Hey @abhishek818 I think this is fine query {
items(blockRange: [0, 100]) { As for the other case I think we could drop Example of no end range, this would get the whole block range. query {
items(blockRange: [0, null]) { As for other requirements:
I think these are relatively straight forward in terms of how the API should be implemented but im happy to give examples if clarification is needed. |
@abhishek818 I've made a minor change to the issue. If there is an entity that gets deleted it should return null at the block height that it is removed. See the example in the issue for more details |
@stwiname hey, some doubts..
Related to "Keyed by block height", do you mean there is always a 'created_at_block_height' or similar column in tables containing '_block_range' ?
Does this refers to a entity that is about to be deleted in the same graphql query containing blockRange param? If yes, can you give a example query..
does this points to use of "limit " keyword of sql OR use of something like argv('query-limit') ? |
damn, auckland timezone is way too ahead.. |
Alrighty, have got some idea after reading https://academy.subquery.network/indexer/run_publish/historical.html , will start implementing soon and then will ask any queries if needed. |
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1887
Type of change
Please delete options that are not relevant.
Checklist