Skip to content

MetadataCache.iterateAllRefs method

MetadataCache › iterateAllRefs

Unofficial

Iterate over all link references in the vault with callback.

The callback is invoked with the path of the file the reference was found in and the reference itself. Returning true from it stops the iteration.

Signature:

iterateAllRefs(callback: (path: string, reference: Reference) => boolean | void): void

Parameters:

ParameterTypeDescription
callback(path: string, reference: Reference) => boolean | voidThe callback to execute for each reference.

Returns: void