GraphQLDocumentRegistry

A registry that provides GraphQL document text and APQ hash for a given operation name.

Implementations can be generated at build time (e.g., GeneratedGraphQLRegistry) or provided manually by the consumer. Runtime converter integrations check this registry before attempting legacy asset-based discovery.

Functions

Link copied to clipboard
abstract fun document(operationName: String): String?

Returns the full GraphQL document text for the given operation name, or null if the operation is not registered.

Link copied to clipboard
abstract fun hash(operationName: String): String?

Returns the SHA-256 hash of the operation's document text, or null if the operation is not registered.