upsert<T extends _Model> method

dynamic upsert <T extends _Model>(
  1. T instance,
  2. {Query query,
  3. ModelRepository<_Model> repository}
)

Insert or update a model instance

Implementation

upsert<T extends _Model>(T instance, {Query query, ModelRepository<_Model> repository});