BaseFirestoreRepository<Id, E extends Entity<Id>> class
abstract
- Implemented types
-
- Implementers
Methods
-
count()
→ Future<Result<int, Exception>>
-
Counts the number of entities of type
E
.
-
delete(Id id, {IDeleteOptions? options})
→ Future<Result<Id, Exception>>
-
Deletes an entity by its
id
.
-
findAll()
→ Future<Result<List<E>, Exception>>
-
Finds all entities of type
E
.
-
findById(Id id, {IGetOptions? options})
→ Future<Result<E?, Exception>>
-
Finds an entity by its
id
.
-
findOne()
→ Future<Result<E?, Exception>>
-
Finds a single entity of type
E
.
-
getDocumentRef(Id id)
→ DocumentReference<Object?>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
protectedCreateOrUpdateAndNotify(CollectionReference<Object?> collection, Id id, E? creater(), E? updater(E prev), {bool? merge, bool? useTransaction, List<Object>? mergeFields})
→ Future<Result<E?, Exception>>
-
inherited
-
protectedDeleteAndNotify(CollectionReference<Object?> collection, Id id)
→ Future<Result<Id, Exception>>
-
inherited
-
protectedGetAndNotify(CollectionReference<Object?> collection, Id id, {bool? useCache})
→ Future<Result<E?, Exception>>
-
inherited
-
protectedListAndNotify(Query<Object?> ref)
→ Future<Result<List<E>, Exception>>
-
inherited
-
protectedSaveAndNotify(CollectionReference<Object?> collection, E entity, {bool? merge, List<Object>? mergeFields})
→ Future<Result<E, Exception>>
-
inherited
-
query()
→ IRepositoryQuery<Id, E>
-
Creates a query object for querying entities of type
E
.
-
save(E entity, {ISaveOptions? options})
→ Future<Result<E, Exception>>
-
Saves an entity of type
E
.
-
toString()
→ String
-
A string representation of this object.
inherited
-
upsert(Id id, {required E? creater(), required E? updater(E prev), ICreateOrUpdateOptions? options})
→ Future<Result<E?, Exception>>
-
Upserts an entity by its
id
.