Collection class
Constructors
-
Collection({required String name, required SerializerStrategy serializer, required WsChannel ws, CryptoStrategy? crypto, CacheStrategy? cache, SecretKey? secretKey, SmartCache? smartCache, bool local = false, Map<
String, String> serverSchema = const {}})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLocal → bool
-
no setter
- onIndexFieldDiscovered ↔ void Function(String collection, String field, String type)?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
syncEvents
→ Stream<
SyncEvent> -
no setter
Methods
-
add(
Map< String, dynamic> data) → Future<String> - Creates a document with an auto-generated ID. Returns the generated ID.
-
bulkDelete(
List< String> ids, {int chunkSize = 500}) → Future<void> -
bulkGet(
List< String> ids, {int chunkSize = 500}) → Future<Map< String, Map< >String, dynamic> > -
bulkSet(
Map< String, Map< docs, {int chunkSize = 500}) → Future<String, dynamic> >void> -
dispose(
) → void -
doc(
String id) → Document -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
dynamic target, {int limit = 0}) → Stream -
where(
String field, {dynamic eq, dynamic from, dynamic to, dynamic gt, dynamic lt}) → QueryBuilder
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited