[][src]Function hdk::api::get_links_with_options

pub fn get_links_with_options<S: Into<String>>(
    base: &Address,
    tag: S,
    options: GetLinksOptions
) -> ZomeApiResult<GetLinksResult>

Consumes three values; the address of an entry get get links from (the base), the tag of the links to be retrieved, and an options struct for selecting what meta data and crud status links to retrieve. Note: the tag is intended to describe the relationship between the base and other entries you wish to lookup. This function returns a list of addresses of other entries which matched as being linked by the given tag. Links are created using the Zome API function link_entries. If you also need the content of the entry consider using one of the helper functions: get_links_result or get_links_and_load

Examples

pub fn handle_posts_by_agent(agent: Address) -> ZomeApiResult<GetLinksResult> {
    hdk::get_links_with_options(&agent, "authored_posts", GetLinksOptions::default())
}