Document class

Constructors

Document({required CloudBaseCore core, required String coll, required dynamic docId, Map<String, dynamic>? projection})

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

create(dynamic data) Future<DbCreateResponse>
创建文档
field(Map<String, bool> projection) Document
get() Future<DbQueryResponse>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove() Future<DbRemoveResponse>
set(dynamic data) Future<DbUpdateResponse>
创建或添加数据
toString() String
A string representation of this object.
inherited
update(dynamic data) Future<DbUpdateResponse>
更新数据
watch({required void onChange(Snapshot snapshot), required void onError(dynamic error)}) RealtimeListener

Operators

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