AdmittedQuery

class AdmittedQuery<out Q : Any>

A query that admission let through for one subscription, with the entry it ran under and the resolution of every field reference it carries. Only QueryAdmission creates it, so a QueryBackend cannot receive a query that skipped admission.

query is the normalized query in its original AST types. Every node of it that carries a field is a fresh instance, and field / systemField answer that node's ResolvedField by identity: backends read resolutions instead of looking fields up. Later admission facts are added as further properties.

Properties

Link copied to clipboard
Link copied to clipboard

The query model the query was admitted against.

Link copied to clipboard
val query: Q

Functions

Link copied to clipboard
fun field(reference: QueryField): ResolvedField

The resolution of one field reference of query, by the identity of its QueryField instance.

Link copied to clipboard
fun physicalPath(reference: QueryField): String

The absolute physical path reference resolved to: where a backend reads the field.

Link copied to clipboard

The resolution of the system field a system-field filter of query (ID, TENANT_ID, DELETION, ...) targets.

Link copied to clipboard

The physical path of the system field a system-field filter of query targets.

Link copied to clipboard
open override fun toString(): String