Function
updateOne
(filter: object, update: object)
Source from the content-addressed store, hash-verified
| 53 | } |
| 54 | |
| 55 | async updateOne(filter: object, update: object): Promise<T> { |
| 56 | const result = await this.repository.updateOne(filter, update); |
| 57 | if (!result) { |
| 58 | this.throwNotFound(); |
| 59 | } |
| 60 | return result; |
| 61 | } |
| 62 | |
| 63 | async updateMany(filter: object, update: object): Promise<any> { |
| 64 | const result = await this.repository.updateMany(filter, update); |
Callers
nothing calls this directly
Tested by
no test coverage detected