You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -72,14 +72,12 @@ export class ExplainTool extends MongoDBToolBase {
72
72
}))asunknownasDocument;
73
73
break;
74
74
}
75
-
default:
76
-
thrownewError(`Unsupported method: ${method}`);
77
75
}
78
76
79
77
return{
80
78
content: [
81
79
{
82
-
text: `Here is some information about the winning plan chosen by the query optimizer for running the given \`${method}\` operation in \`${database}.${collection}\`. This information can be used to understand how the query was executed and to optimize the query performance.`,
80
+
text: `Here is some information about the winning plan chosen by the query optimizer for running the given \`${method.name}\` operation in \`${database}.${collection}\`. This information can be used to understand how the query was executed and to optimize the query performance.`,
0 commit comments