Update updates the first document matching the selector.
| 11 | |
| 12 | // Update updates the first document matching the selector. |
| 13 | type Update struct { |
| 14 | Database string // database name |
| 15 | Collection string // collection name |
| 16 | Selector map[string]interface{} // document selector |
| 17 | Change map[string]interface{} // update document |
| 18 | } |
| 19 | |
| 20 | func (u *Update) Exec(_ interface{}) (r result.Result[any]) { |
| 21 | defer r.Catch() |
nothing calls this directly
no outgoing calls
no test coverage detected