Creates a `replaceOne` query: finds the first document that matches `filter` and replaces it with `replacement`.
(
filter?: QueryFilter<TRawDocType>,
replacement?: TRawDocType | AnyObject,
options?: (mongodb.ReplaceOptions & QueryOptions<TRawDocType>) | null
)
| 1216 | |
| 1217 | /** Creates a `replaceOne` query: finds the first document that matches `filter` and replaces it with `replacement`. */ |
| 1218 | replaceOne<ResultDoc = THydratedDocumentType>( |
| 1219 | filter?: QueryFilter<TRawDocType>, |
| 1220 | replacement?: TRawDocType | AnyObject, |
| 1221 | options?: (mongodb.ReplaceOptions & QueryOptions<TRawDocType>) | null |
no outgoing calls