QueryAPI
Constructors
new QueryAPI()
new QueryAPI(
apiInstance
):QueryAPI
Parameters
Parameter | Type |
---|---|
|
Returns
Defined in
Properties
apiInstance
readonly
apiInstance:API
Defined in
Methods
files()
files<
T
>(query
):T
[]
This function will run the query
callback on every markdown file in the vault and then return a list of the results, with undefined
filtered out.
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
( |
Returns
T
[]
Examples
Defined in
filesWithMetadata()
filesWithMetadata<
T
>(query
):T
[]
This function functions similarly tp QueryAPI.files, but also provides the cache and tags of each file to the query
callback.
Type Parameters
Type Parameter |
---|
|
Parameters
Parameter | Type |
---|---|
|
( |
Returns
T
[]