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

Method available_parent_topics

backend/src/graphql/topic.rs:79–89  ·  view source on GitHub ↗

FIXME - needs to be scoped somehow, perhaps to the repo id

(
        &self,
        ctx: &Context<'_>,
        search_string: Option<String>,
    )

Source from the content-addressed store, hash-verified

77impl RepoTopic {
78 // FIXME - needs to be scoped somehow, perhaps to the repo id
79 async fn available_parent_topics(
80 &self,
81 ctx: &Context<'_>,
82 search_string: Option<String>,
83 ) -> Result<LiveSearchTopicsPayload> {
84 let result = ctx
85 .data_unchecked::<Store>()
86 .search_topics(search_string)
87 .await?;
88 Ok(LiveSearchTopicsPayload(result))
89 }
90
91 async fn details(&self) -> Option<RepoTopicDetails<'_>> {
92 self.0.details().map(RepoTopicDetails)

Callers

nothing calls this directly

Calls 2

search_topicsMethod · 0.80

Tested by

no test coverage detected