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

Method available_parent_topics

backend/src/graphql/link.rs:38–48  ·  view source on GitHub ↗
(
        &self,
        ctx: &Context<'_>,
        search_string: Option<String>,
    )

Source from the content-addressed store, hash-verified

36#[Object]
37impl<'l> RepoLink<'l> {
38 async fn available_parent_topics(
39 &self,
40 ctx: &Context<'_>,
41 search_string: Option<String>,
42 ) -> Result<LiveSearchTopicsPayload> {
43 let result = ctx
44 .data_unchecked::<Store>()
45 .search_topics(search_string)
46 .await?;
47 Ok(LiveSearchTopicsPayload(result))
48 }
49
50 async fn details(&self) -> Option<RepoLinkDetails<'_>> {
51 self.0.details().map(RepoLinkDetails)

Callers

nothing calls this directly

Calls 2

search_topicsMethod · 0.80

Tested by

no test coverage detected