doc method

  1. @override
DocRefMongo doc([
  1. String? id
])
override

Implementation

@override
DocRefMongo doc([String? id]) {
  //! apply doc id restriction
  String docId = id ?? ObjectId().toHexString();
  return DocRefMongo(docId, this, _db);
}