MCPcopy
hub / github.com/mongodb/node-mongodb-native / find

Method find

src/collection.ts:568–578  ·  src/collection.ts::Collection.find
(
    filter: Filter<TSchema> = {},
    options: FindOptions & Abortable = {}
  )

Source from the content-addressed store, hash-verified

566 options?: FindOptions & Abortable
567 ): FindCursor<T>;
568 find(
569 filter: Filter<TSchema> = {},
570 options: FindOptions & Abortable = {}
571 ): FindCursor<WithId<TSchema>> {
572 return new FindCursor<WithId<TSchema>>(
573 this.client,
574 this.s.namespace,
575 filter,
576 resolveOptions(this, options)
577 );
578 }
579
580 /**
581 * Returns the options of the collection.

Callers 15

findOneMethod · 0.95
expand-tasks.mjsFile · 0.45
scheduleWorkloadFunction · 0.45
jquery.jsFile · 0.45
runCmapTestSuiteFunction · 0.45
findLastFunction · 0.45
testSkipBeforeEachHookFunction · 0.45
checkFlakyTestListFunction · 0.45
topologySatisfiesFunction · 0.45
operations.tsFile · 0.45
checkForNewPrimaryFunction · 0.45

Calls 1

resolveOptionsFunction · 0.90

Tested by 12

waitForIndexesFunction · 0.36
testFunction · 0.36
makeCursorFunction · 0.36
operationFunction · 0.36
finishedFunction · 0.36
testFunction · 0.36
findSortFunction · 0.36
cursorSortFunction · 0.36
replaceDocumentsFunction · 0.36
testFunction · 0.36
makeCursorFunction · 0.36