For my ongoing development of an electronic lab notebook plugin, I require a list of all files that contain a specific tag. Unfortunately, there appears to be no API function that accomplishes this task, although the Obsidian search plugin offers this functionality. While exploring the API, I discovered the getAllTags() and getAllPropertyInfos() functions provided by metadatacache. However, these functions only return an array of tags or properties along with a counter variable for each tag or property. While this information is useful for statistical purposes, I see little practical applications for it. A more useful approach would be if each tag or property contained an array of TFiles that point to the notes containing that tag or property. This approach would likely be significantly less computationally intensive compared to querying all markdown files in the vault and then filtering them for the respective tag or property.