Optional
blobOptional
branchOptional
dateOptional
dateOptional
isOptional
isOptional
utcProtected
beccaBranch is weak when its existence should not hinder deletion of its note. As a result, note with only weak branches should be immediately deleted. An example is shared or bookmarked clones - they are created automatically and exist for technical reasons, not as user-intended actions. From user perspective, they don't count as real clones and for the purpose of deletion should not act as a clone.
root branch will have undefined parent, all other branches have to have a parent note
Static
entityStatic
hashedStatic
primaryProtected
_getProtected
_setOptional
notePosition: numberDelete a branch. If this is a last note's branch, delete the note as well.
Optional
deleteId: stringoptional delete identified
Optional
taskContext: TaskContexttrue if note has been deleted, false otherwise
Optional
isDeleted: booleanProtected
getMark the entity as (soft) deleted. It will be completely erased later.
This is a low-level method, for notes and branches use note.deleteNote()
and 'branch.deleteBranch()` instead.
Protected
putSaves entity - executes SQL, but doesn't commit the transaction on its own
Optional
opts: {}
Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple parents.
Note that you should not rely on the branch's identity, since it can change easily with a note's move. Always check noteId instead.