Skip to content

routier-collection


routier-collection / core/src / explainQuery

Function: explainQuery()

explainQuery(options, context): QueryExplanation

Defined in: core/src/plugins/query/explain.ts:253

Builds the explanation from the resolved options, with no plugin involvement.

Takes the collection BEFORE split(), and throws otherwise. Splitting re-adds each half into a fresh collection, which re-derives targets without the options that caused them — a post-join filter alone in the memory half derives back to "database", and the document would report memory work as having run in the database.

Parameters

options

QueryOptionsCollection<any>

context

ExplainContext

Returns

QueryExplanation

Released under the MIT License.