FR: Allow plugins to add links between notes

This post has been migrated from the obsidian-api repo:

In a plugin I’m going to develop with @SkepticMystic, we would like our plugin to manually add links between notes. This has also been requested in DataView use cases, where users expect the outputs of DV to link from the source note to the outputs of DV.

We might be able to hack around with resolvedLinks and the ReferenceCache, but that sounds challenging and unreliable.