CollectionRead<R, T extends Serializable> class abstract

Read a List of T from the Collection

R: should return a List<T> or some subset, i.e. Either<Failure, List<T>>

Implementers

Constructors

CollectionRead()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

limit(int limit) Future<R>
Get up to the maximum number of documents specified by the limit
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderBy(List<OrderBy> orderBy, {int? limit}) Future<R>
Get a list of documents from the collection as a list ordered by the orderBy
readAll() Future<R>
Gets all documents from the collection
streamAll() Stream<R>
Get a list of all documents from the collection as a list
streamLimited(int limit) Stream<R>
Get up to the maximum number of documents specified by the limit
streamOrdered(List<OrderBy> orderBy) Stream<R>
Get a list of all documents from the collection sorted by orderBy
streamWhere(List<Clause> clauses, {List<OrderBy>? orderBy, int? limit}) Stream<R>
Get a list of documents matching all clauses
toString() String
A string representation of this object.
inherited
where(List<Clause> clauses, {List<OrderBy>? orderBy, int? limit}) Future<R>
Get a list of documents matching all clauses

Operators

operator ==(Object other) bool
The equality operator.
inherited