Collection<T extends Serializable> class
abstract
- Implemented types
-
- Implementers
Methods
-
countAll()
→ Future<int>
-
Gets the amount of all documents within the collection.
inherited
-
countWhere(List<Clause> clauses)
→ Future<int>
-
Gets the amount of documents filtered by the provided clauses.
inherited
-
create(T value)
→ Future<DocumentId>
-
Create a new document with an auto-generated DocumentId
inherited
-
createById({required T value, required DocumentId docId})
→ Future<DocumentId>
-
Create a new document with the provided
docId
inherited
-
delete(DocumentId docId)
→ Future<void>
-
Deletes the current document from the collection.
inherited
-
limit(int limit)
→ Future<List<T>>
-
Get up to the maximum number of documents specified by the limit
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
orderBy(List<OrderBy> orderBy, {int? limit})
→ Future<List<T>>
-
Get a list of documents from the collection as a list ordered by the
orderBy
inherited
-
paginate(Chunk<T> chunk)
→ Future<Chunk<T>>
-
Get a number of Documents from the Collection specified by the
chunk
inherited
-
read(DocumentId docId)
→ Future<T?>
-
Gets a single document from the collection
inherited
-
readAll()
→ Future<List<T>>
-
Gets all documents from the collection
inherited
-
readOrCreate({required DocumentId docId, required T createValue})
→ Future<T>
-
Get the document by id, or create a new one
inherited
-
replace({required DocumentId docId, required T value})
→ Future<void>
-
Replaces the document at
docId
with value
.
inherited
-
replaceFields({required DocumentId docId, required T value, required List<String> fieldPaths})
→ Future<void>
-
Replaces the fields of the document at
docId
with the matching
fieldPaths
from value
inherited
-
stream(DocumentId docId)
→ Stream<T?>
-
Gets a stream of the document requested
inherited
-
streamAll()
→ Stream<List<T>>
-
Get a list of all documents from the collection as a list
inherited
-
streamCountAll()
→ Stream<int>
-
Gets the amount of all documents from the collection
inherited
-
streamCountWhere(List<Clause> clauses)
→ Stream<int>
-
Gets the amount of documents from the collection, filtered by the provided
clauses
inherited
-
streamLimited(int limit)
→ Stream<List<T>>
-
Get up to the maximum number of documents specified by the
limit
inherited
-
streamOrdered(List<OrderBy> orderBy)
→ Stream<List<T>>
-
Get a list of all documents from the collection sorted by
orderBy
inherited
-
streamWhere(List<Clause> clauses, {List<OrderBy>? orderBy, int? limit})
→ Stream<List<T>>
-
Get a list of documents matching all clauses
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({required DocumentId docId, required T value})
→ Future<void>
-
Updates data on the document. Data will be merged with any existing
document data.
inherited
-
updateOrCreate({required DocumentId docId, required T value})
→ Future<T>
-
Updates data on the document if it exists. Data will be merged with
any existing document data.
inherited
-
where(List<Clause> clauses, {List<OrderBy>? orderBy, int? limit})
→ Future<List<T>>
-
Get a list of documents matching all clauses
inherited
-
whereById(DocumentId docId)
→ Future<T?>
-
Get a document matching the document id
inherited