Skip to content

Indexer.ts

This module interfaces with the indexer to source data.

Added in v2.0.0

Signature

export declare class IndexerError

Added in v2.0.0

Signature

static fromClientError(error: ClientError)

Added in v2.0.0

Source: src/Indexer.ts:42

A “generic” GraphQL request containing document and variables. TODO: This should be defined on a per-request basis, which not only will provide better type safety but also abstract over GraphQL backing.

Signature

export declare class IndexerRequest

Added in v2.0.0

Signature

;[PrimaryKey.symbol]()

Added in v2.0.0

Source: src/Indexer.ts:147

Signature

export declare class GetPacketHashBySubmissionTxHash

Added in v2.0.0

Source: src/Indexer.ts:214

Define TTL strategy given some GQL document. NOTE: Determines TTL by virtue of custom @cached directive.

Signature

export declare class GraphQLCache

Added in v2.0.0

Source: src/Indexer.ts:83

Signature

export declare class Indexer

Added in v2.0.0

Source: src/Indexer.ts:231

Signature

export declare const operationNamesFromDocumentNode: <T extends TadaDocumentNode<any, any>>(doc: T) => string[]

Source: src/Indexer.ts:68

Added in v2.0.0