upsert<T extends TModel> abstract method

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

Insert or update a model instance

Implementation

// ignore: always_declare_return_types
upsert<T extends TModel>(T instance, {Query? query, ModelRepository<TModel>? repository});