exists<T extends TModel> method

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

Whether a model instance is present. null is returned when existence is unknown. The model instance is not hydrated in the function output; a bool variant (e.g. List<bool>, Map<TModel, bool>) should be returned.

Implementation

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