Implement compare CLI for multiple entities for given block range (#108)

* Implement compare CLI for multiple entities at blocks

* Implement caching for gql requests
This commit is contained in:
2022-01-17 15:18:44 +05:30
committed by GitHub
parent aabf9f8e15
commit 9a8ae3f308
10 changed files with 275 additions and 98 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ export class Schema {
// Get type composer object for return type from the schema composer.
type: this._composer.getAnyTC(subgraphType).NonNull,
args: {
id: 'String!',
id: 'ID!',
block: 'Block_height'
}
};
@@ -92,7 +92,7 @@ export const handler = async (argv: any): Promise<void> => {
const ipldStatus = await indexer.getIPLDStatus();
if(ipldStatus) {
if (ipldStatus) {
if (ipldStatus.latestHooksBlockNumber > blockProgress.blockNumber) {
await indexer.updateIPLDStatusHooksBlock(blockProgress.blockNumber, true);
}