PhoenixKitKnowledgeBase.Schemas.NoteLink (PhoenixKitKnowledgeBase v0.1.0)

Copy Markdown View Source

One [[wiki-link]] from a note to a title in the same vault.

The index is rebuilt from a note's body every time it is saved (PhoenixKitKnowledgeBase.Links.reindex_note/1), so it is a cache of the markdown rather than a second source of truth.

A row with target_note_uuid nil is an unresolved link: the note being pointed at does not exist yet. Those are kept deliberately — "what have I linked to but not written?" is the question that grows a vault, and it is what makes clicking a dangling link offer to create the note. When a note is later created with a matching title, every unresolved row in that vault pointing at it is resolved in one update; when a note is deleted, the links into it go back to unresolved rather than vanishing.

Summary

Types

t()

@type t() :: %PhoenixKitKnowledgeBase.Schemas.NoteLink{
  __meta__: term(),
  inserted_at: term(),
  source_note: term(),
  source_note_uuid: term(),
  target_key: term(),
  target_note: term(),
  target_note_uuid: term(),
  target_title: term(),
  updated_at: term(),
  uuid: term(),
  vault: term(),
  vault_uuid: term()
}

Functions

changeset(link, attrs)