TenantQueryApi

A NodeQueryApi that builds the reads of a subscription handler itself (tenant), which the node asks of every QueryApi it hands its handlers: a provider's side of the read API, not an entry point of an application, which reads as a caller (of) or as trusted code (trusted).

The node's own API implements it, pinning the tenant of the commit as trusted code, and so does a test's QueryApi that must read as the node does (:test-query's memory queries). Any other QueryApi, a test's fake say, serves a handler as a caller of the commit's tenant with no owner, space or subject, the rest trusted.

Functions

Link copied to clipboard
abstract fun tenant(tenantId: String): SubscriptionQueries

The queries of a subscription handler of a commit of tenantId, which its context hands it: they read in tenantId alone, and answer SubscriptionQueries.tenantId with it.