MCPcopy Index your code
hub / github.com/directus/directus / isNestedMetaUpdate

Function isNestedMetaUpdate

api/src/utils/apply-diff.ts:374–379  ·  view source on GitHub ↗
(diff: Diff<SnapshotField | undefined>)

Source from the content-addressed store, hash-verified

372}
373
374export function isNestedMetaUpdate(diff: Diff<SnapshotField | undefined>): boolean {
375 if (!diff) return false;
376 if (diff.kind !== DiffKind.NEW && diff.kind !== DiffKind.DELETE) return false;
377 if (!diff.path || diff.path.length < 2 || diff.path[0] !== 'meta') return false;
378 return true;
379}

Callers 3

apply-diff.test.tsFile · 0.85
applyDiffFunction · 0.85
applyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected