update abstract method
Subclasses must implement this to update a single object by id. The update function is passed the current object and should return the updated object.
Implementation
Future<void> update(ObjectId id, T Function(T object) update);