File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,8 @@ export class ExplainTool extends MongoDBToolBase {
53
53
let result : Document ;
54
54
switch ( method . name ) {
55
55
case "aggregate" : {
56
- const { pipeline, limit } = method . arguments ;
57
- result = await provider
58
- . aggregate ( database , collection , pipeline )
59
- . limit ( limit )
60
- . explain ( ExplainTool . defaultVerbosity ) ;
56
+ const { pipeline } = method . arguments ;
57
+ result = await provider . aggregate ( database , collection , pipeline ) . explain ( ExplainTool . defaultVerbosity ) ;
61
58
break ;
62
59
}
63
60
case "find" : {
Original file line number Diff line number Diff line change @@ -21,10 +21,9 @@ export class AggregateTool extends MongoDBToolBase {
21
21
database,
22
22
collection,
23
23
pipeline,
24
- limit,
25
24
} : ToolArgs < typeof this . argsShape > ) : Promise < CallToolResult > {
26
25
const provider = this . ensureConnected ( ) ;
27
- const documents = await provider . aggregate ( database , collection , pipeline ) . limit ( limit ) . toArray ( ) ;
26
+ const documents = await provider . aggregate ( database , collection , pipeline ) . toArray ( ) ;
28
27
29
28
const content : Array < { text : string ; type : "text" } > = [
30
29
{
You can’t perform that action at this time.
0 commit comments