notes/
all_notes.rs

1
2
3
4
5
6
7
8
use hdk::prelude::*;
use notes_integrity::*;

#[hdk_extern]
pub fn get_all_notes() -> ExternResult<Vec<Link>> {
    let path = Path::from("all_notes");
    get_links(GetLinksInputBuilder::try_new(path.path_entry_hash()?, LinkTypes::AllNotes)?.build())
}