MCPcopy Create free account
hub / github.com/Automattic/mongoose / getModifiedPaths

Function getModifiedPaths

lib/document.js:3000–3000  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2998 // checking many required paths doesn't rebuild it per-path (O(required x modified)).
2999 let _modifiedPaths;
3000 const getModifiedPaths = () => (_modifiedPaths ??= doc.modifiedPaths());
3001
3002 // only validate required fields when necessary
3003 let paths = [];

Callers 1

_getPathsToValidateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected