DataviewCandidateRetriever
The DataviewCandidateRetriever
class manages the retrieval of candidate information from Dataview.
It provides methods to retrieve source information and file contents based on the provided DQL query.
Implements
CandidateRetriever
Methods
getSourceInfo()
Retrieves the source information based on the provided DQL query. It queries the DQL and retrieves the paths from the results. It then retrieves the files based on the paths and returns an array of objects containing the file paths.
Parameters
Parameter | Type | Description |
---|---|---|
dql | string [] | The DQL query to retrieve the source information. |
Returns
A Promise that resolves to an array of objects containing the file paths.
Source
source/retrieve/DataviewCandidateRetriever.ts:32
retrieve()
Retrieves file contents. It ensures that duplicate paths are filtered out by creating a Set from the paths array. Each file is then processed to prepare its contents according to the specified strategy The resulting array of FileContents is flattened before being returned.
Parameters
Parameter | Type | Description |
---|---|---|
parameters | StrategyMetadata | An object containing the DQL query, strategy, and optional evergreen status |
Returns
A Promise that resolves to an array of FileContents, each representing the contents of a file.
Implementation of
CandidateRetriever.retrieve
Source
source/retrieve/DataviewCandidateRetriever.ts:56
Generated using typedoc-plugin-markdown and TypeDoc