QueryExplanation
How the db serves a query, from
query.explain()
Import
import { QueryExplanation } from "@hyper-fetch/db"
Source
Package
Preview
type QueryExplanation = {
answeredLocally: boolean;
error?: Error;
kind: list | one | local | error;
loader?: number;
local: ExpressionNode[];
sent: SendableNode[];
syncs: { topic: string; type: (insert | update | delete | changes) }[];
}
Structure
QueryExplanation
| Name | Type | Description |
|---|---|---|
| answeredLocally | | Whether rows the db already holds answer the query, with no request |
| error | | |
| kind | | |
| loader | | Index of the loader in the collection's chain |
| local | | Conditions evaluated on the rows the db holds |
| sent | | Conditions sent to the backend |
| syncs | | The syncs that keep the result live |
