Document.prototype.modifiedPaths()
Parameters
[options] «Object»
[options.includeChildren=false] «Boolean» if true, returns children of modified paths as well. For example, if false, the list of modified paths for
doc.colors = { primary: 'blue' };
will not containcolors.primary
. If true,modifiedPaths()
will return an array that containscolors.primary
.
Returns:
- «Array»
Returns the list of paths that have been modified.
当前内容版权归 mongoosejs 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 mongoosejs .