ExplainPlan: {
collections: {
name: string;
type: "read" | "write";
}[];
estimatedCost: number;
estimatedNrItems: number;
isModificationQuery: boolean;
nodes: {
dependencies: number[];
estimatedCost: number;
estimatedNrItems: number;
id: number;
type: string;
[key: string]: any;
}[];
rules: string[];
variables: {
id: number;
name: string;
}[];
}
Type declaration
-
collections: {
name: string;
type: "read" | "write";
}[]
-
estimatedCost: number
-
estimatedNrItems: number
-
isModificationQuery: boolean
-
nodes: {
dependencies: number[];
estimatedCost: number;
estimatedNrItems: number;
id: number;
type: string;
[key: string]: any;
}[]
-
rules: string[]
-
variables: {
id: number;
name: string;
}[]
Plan explaining query execution.