Expand description
Query identities (packages/zero-protocol/src/query-hash-visitor.ts).
The JS implementation folds an AST (or a name and args) into two xxHash32 lanes word by word. These digests are the query IDs the client registers, so they have to match exactly.
Functionsยง
- hash_
of_ ast hashOfAST: the hash ofastafter normalizing it.- hash_
of_ name_ and_ args hashOfNameAndArgs: the identity of a named (custom) query.- hash_
of_ normalized_ ast - The hash of an AST that is already normalized.
- hash_
of_ query_ internals hashOfQueryInternals: the identity of a query as the client sees it.