跳到主要内容

Document

2025年02月25日
柏拉文
越努力,越幸运

前言


Document API 文档

一、Document.prototype.$assertPopulated()


1.1 认识

Document.prototype.$assertPopulated()

1.2 语法

1.3 用法

二、Document.prototype.$clearModifiedPaths()


2.1 认识

Document.prototype.$clearModifiedPaths()

2.2 语法

2.3 用法

三、Document.prototype.$clone()


3.1 认识

Document.prototype.$clone()

3.2 语法

3.3 用法

四、Document.prototype.$createModifiedPathsSnapshot()


4.1 认识

Document.prototype.$createModifiedPathsSnapshot()

4.2 语法

4.3 用法

五、Document.prototype.$errors


5.1 认识

Document.prototype.$errors

5.2 语法

5.3 用法

六、Document.prototype.$getAllSubdocs()


6.1 认识

Document.prototype.$getAllSubdocs()

6.2 语法

6.3 用法

七、Document.prototype.$getPopulatedDocs()


7.1 认识

Document.prototype.$getPopulatedDocs()

7.2 语法

7.3 用法

八、Document.prototype.$ignore()


8.1 认识

Document.prototype.$ignore()

8.2 语法

8.3 用法

九、Document.prototype.$inc()


9.1 认识

Document.prototype.$inc()

9.2 语法

9.3 用法

十、Document.prototype.$init()


10.1 认识

Document.prototype.$init()

10.2 语法

10.3 用法

十一、Document.prototype.$isDefault()


11.1 认识

Document.prototype.$isDefault()

11.2 语法

11.3 用法

十二、Document.prototype.$isDeleted()


12.1 认识

Document.prototype.$isDeleted()

12.2 语法

12.3 用法

十三、Document.prototype.$isEmpty()


13.1 认识

Document.prototype.$isEmpty()

13.2 语法

13.3 用法

十四、Document.prototype.$isModified()


14.1 认识

Document.prototype.$isModified()

14.2 语法

14.3 用法

十五、Document.prototype.$isNew


15.1 认识

Document.prototype.$isNew

15.2 语法

15.3 用法

十六、Document.prototype.$locals


16.1 认识

Document.prototype.$locals

16.2 语法

16.3 用法

十七、Document.prototype.$markValid()


17.1 认识

Document.prototype.$markValid()

17.2 语法

17.3 用法

十八、Document.prototype.$op


18.1 认识

Document.prototype.$op

18.2 语法

18.3 用法

十九、Document.prototype.$parent()


19.1 认识

Document.prototype.$parent()

19.2 语法

19.3 用法

二十、Document.prototype.$populated()


20.1 认识

Document.prototype.$populated()

20.2 语法

20.3 用法

二十一、Document.prototype.$restoreModifiedPathsSnapshot()


21.1 认识

Document.prototype.$restoreModifiedPathsSnapshot()

21.2 语法

21.3 用法

二十二、Document.prototype.$session()


22.1 认识

Document.prototype.$session()

22.2 语法

22.3 用法

二十三、Document.prototype.$set()


23.1 认识

Document.prototype.$set()

23.2 语法

23.3 用法

二十四、Document.prototype.$timestamps()


24.1 认识

Document.prototype.$timestamps()

24.2 语法

24.3 用法

二十五、Document.prototype.$validate()


25.1 认识

Document.prototype.$validate()

25.2 语法

25.3 用法

二十六、Document.prototype.$where


26.1 认识

Document.prototype.$where

26.2 语法

26.3 用法

二十七、Document.prototype.depopulate()


27.1 认识

Document.prototype.depopulate()

27.2 语法

27.3 用法

二十八、Document.prototype.directModifiedPaths()


28.1 认识

Document.prototype.directModifiedPaths()

28.2 语法

28.3 用法

二十九、Document.prototype.equals()


29.1 认识

Document.prototype.equals()

29.2 语法

29.3 用法

三十、Document.prototype.errors


30.1 认识

Document.prototype.errors

30.2 语法

30.3 用法

三十一、Document.prototype.get()


31.1 认识

Document.prototype.get()

31.2 语法

31.3 用法

三十二、Document.prototype.getChanges()


32.1 认识

Document.prototype.getChanges()

32.2 语法

32.3 用法

三十三、Document.prototype.id


33.1 认识

Document.prototype.id

33.2 语法

33.3 用法

三十四、Document.prototype.init()


34.1 认识

Document.prototype.init()

34.2 语法

34.3 用法

三十五、Document.prototype.inspect()


35.1 认识

Document.prototype.inspect()

35.2 语法

35.3 用法

三十六、Document.prototype.invalidate()


36.1 认识

Document.prototype.invalidate()

36.2 语法

36.3 用法

三十七、Document.prototype.isDirectModified()


37.1 认识

Document.prototype.isDirectModified()

37.2 语法

37.3 用法

三十八、Document.prototype.isDirectSelected()


38.1 认识

Document.prototype.isDirectSelected()

38.2 语法

38.3 用法

三十九、Document.prototype.isInit()


39.1 认识

Document.prototype.isInit()

39.2 语法

39.3 用法

四十、Document.prototype.isModified()


40.1 认识

Document.prototype.isModified()

40.2 语法

40.3 用法

四十一、Document.prototype.isNew


41.1 认识

Document.prototype.isNew

41.2 语法

41.3 用法

四十二、Document.prototype.isSelected()


42.1 认识

Document.prototype.isSelected()

42.2 语法

42.3 用法

四十三、Document.prototype.markModified()


43.1 认识

Document.prototype.markModified()

43.2 语法

43.3 用法

四十四、Document.prototype.modifiedPaths()


44.1 认识

Document.prototype.modifiedPaths()

44.2 语法

44.3 用法

四十五、Document.prototype.overwrite()


45.1 认识

Document.prototype.overwrite()

45.2 语法

45.3 用法

四十六、Document.prototype.parent()


46.1 认识

Document.prototype.parent()

46.2 语法

46.3 用法

四十七、Document.prototype.populate()


47.1 认识

Document.prototype.populate()

47.2 语法

47.3 用法

四十八、Document.prototype.populated()


48.1 认识

Document.prototype.populated()

48.2 语法

48.3 用法

四十九、Document.prototype.replaceOne()


49.1 认识

Document.prototype.replaceOne()

49.2 语法

49.3 用法

五十、Document.prototype.save()


50.1 认识

Document.prototype.save()

50.2 语法

50.3 用法

五十一、Document.prototype.schema


51.1 认识

Document.prototype.schema

51.2 语法

51.3 用法

五十二、Document.prototype.set()


52.1 认识

Document.prototype.set()

52.2 语法

52.3 用法

五十三、Document.prototype.toJSON()


53.1 认识

Document.prototype.toJSON()

53.2 语法

53.3 用法

五十四、Document.prototype.toObject()


54.1 认识

Document.prototype.toObject()

54.2 语法

54.3 用法

五十五、Document.prototype.toString()


55.1 认识

Document.prototype.toString()

55.2 语法

55.3 用法

五十六、Document.prototype.unmarkModified()


56.1 认识

Document.prototype.unmarkModified()

56.2 语法

56.3 用法

五十七、Document.prototype.updateOne()


57.1 认识

Document.prototype.updateOne()

57.2 语法

57.3 用法

五十八、Document.prototype.validate()


58.1 认识

Document.prototype.validate()

58.2 语法

58.3 用法

五十九、Document.prototype.validateSync()


59.1 认识

Document.prototype.validateSync()

59.2 语法

59.3 用法