MongoDbDocument class
- Implementers
Constructors
- MongoDbDocument(String _id, CollRefMongo _collRef)
-
const
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
-
delete(
) → Future< WriteResult> - this will delete the document
-
getData(
) → Future< Map< String, dynamic> ?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
Map< String, dynamic> doc, {bool upset = true}) → Future<WriteResult> - this will remove the old document and add another one with the same id
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Map< String, dynamic> doc, {bool upsert = true}) → Future<WriteResult> - this will update certain values presented in the doc object
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited