MCPcopy Create free account
hub / github.com/emwalker/digraph / link

Method link

backend/src/graphql/view.rs:70–76  ·  view source on GitHub ↗
(&self, ctx: &Context<'_>, id: String)

Source from the content-addressed store, hash-verified

68 }
69
70 async fn link(&self, ctx: &Context<'_>, id: String) -> Result<Option<Link>> {
71 Ok(ctx
72 .data_unchecked::<Store>()
73 .fetch_link(id.try_into()?)
74 .await?
75 .map(Link::from))
76 }
77
78 async fn topic(&self, ctx: &Context<'_>, id: String) -> Result<Option<Topic>> {
79 Ok(ctx

Callers

nothing calls this directly

Calls 2

fetch_linkMethod · 0.45
try_intoMethod · 0.45

Tested by

no test coverage detected