APQHashGenerator

Generates SHA-256 hashes for GraphQL document strings.

These hashes are used for Automatic Persisted Queries (APQ). The hash must be computed from the exact document text that will be sent over the wire (after fragment flattening).

Functions

Link copied to clipboard
fun hash(document: String): String

Computes the SHA-256 hex digest of the given document text.