Skip to content

Commit 03a00b2

Browse files
authored
Merge pull request #15429 from chriskrycho/vector-types
types: fix definition of VectorSearch.$vectorSearch
2 parents f0736a9 + f2c7607 commit 03a00b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

types/pipelinestage.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,11 @@ declare module 'mongoose' {
319319
export interface VectorSearch {
320320
/** [`$vectorSearch` reference](https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-stage/) */
321321
$vectorSearch: {
322+
exact?: boolean;
322323
index: string,
323324
path: string,
324325
queryVector: number[],
325-
numCandidates: number,
326+
numCandidates?: number,
326327
limit: number,
327328
filter?: Expression,
328329
}

0 commit comments

Comments
 (0)