Skip to main content

Module chained_document_query

Module chained_document_query 

Source
Expand description

Chained document queries — the client half of the provable semi-join: SELECT * FROM <outer> WHERE $id IN (SELECT <join_property> FROM <inner> WHERE …).

The inner half is an ordinary DocumentQuery against an indexOnly document type; the request carries no outer clauses at all — the server derives the outer by-ids query from the inner results, and the verifier re-derives it from the PROVEN inner results, so the join can never be steered by the responding node. See drive::query::chained_document_query for the trust model.

Structs§

ChainedDocumentQuery
A chained document query: the inner DocumentQuery plus the join edge. The outer half has no clauses by design — it is derived.