MCPcopy
hub / github.com/Automattic/mongoose / findOne

Method findOne

types/models.d.ts:467–467  ·  view source on GitHub ↗

Finds one document.

(
      filter: QueryFilter<TRawDocType>,
      projection: ProjectionType<TRawDocType> | null | undefined,
      options: QueryOptions<TRawDocType> & { lean: true } & mongodb.Abortable
    )

Source from the content-addressed store, hash-verified

465
466 /** Finds one document. */
467 findOne<ResultDoc = THydratedDocumentType>(
468 filter: QueryFilter<TRawDocType>,
469 projection: ProjectionType<TRawDocType> | null | undefined,
470 options: QueryOptions<TRawDocType> & { lean: true } & mongodb.Abortable

Calls

no outgoing calls

Tested by 15

autoTypedVirtualsFunction · 0.52
findByNameFunction · 0.52
documentDepopulateFunction · 0.52
testPathsParamFunction · 0.52
gh11503Function · 0.52
gh11544Function · 0.52
gh11862Function · 0.52
_11532Function · 0.52
gh11710Function · 0.52
gh11955Function · 0.52