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

Method topic_live_search

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

Source from the content-addressed store, hash-verified

84 }
85
86 async fn topic_live_search(
87 &self,
88 ctx: &Context<'_>,
89 search_string: Option<String>,
90 ) -> Result<LiveSearchTopicsPayload> {
91 let result = ctx
92 .data_unchecked::<Store>()
93 .search_topics(search_string)
94 .await?;
95
96 Ok(LiveSearchTopicsPayload(result))
97 }
98
99 async fn stats(&self, ctx: &Context<'_>) -> Result<ViewStats> {
100 ctx.data_unchecked::<Store>().view_stats().await?.try_into()

Callers

nothing calls this directly

Calls 2

search_topicsMethod · 0.80

Tested by

no test coverage detected