Collection class

Constructors

Collection(String _name, Database _db)

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

count({Map<String, dynamic>? filter}) int
delete(Map<String, dynamic> filter) bool
drop() int
find({Map<String, dynamic>? filter}) List<Map<String, dynamic>>
findAs<T>(T predicate(Map<String, dynamic> v), {Map<String, dynamic>? filter}) List<T>
findOne({Map<String, dynamic>? filter}) Map<String, dynamic>?
findOneAs<T>(T predicate(Map<String, dynamic> v), {Map<String, dynamic>? filter}) → T?
insert(Map<String, dynamic> entry) → void
insertMany(List<Map<String, dynamic>> entries) → void
modify(Map<String, dynamic> filter, Map<String, dynamic> update) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update(Map<String, dynamic> filter, Map<String, dynamic> update, bool upsert) bool

Operators

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