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

Method parent_topics

backend/src/graphql/topic.rs:111–124  ·  view source on GitHub ↗
(
        &self,
        ctx: &Context<'_>,
        after: Option<String>,
        before: Option<String>,
        first: Option<i32>,
        last: Option<i32>,
    )

Source from the content-addressed store, hash-verified

109 }
110
111 async fn parent_topics(
112 &self,
113 ctx: &Context<'_>,
114 after: Option<String>,
115 before: Option<String>,
116 first: Option<i32>,
117 last: Option<i32>,
118 ) -> Result<TopicConnection> {
119 let topics = ctx
120 .data_unchecked::<Store>()
121 .fetch_topics(self.0.parent_topic_ids(), 50)
122 .await?;
123 relay::topics(after, before, first, last, topics).await
124 }
125
126 async fn repo(&self, ctx: &Context<'_>) -> Result<Repository> {
127 match ctx

Callers

nothing calls this directly

Calls 3

topicsFunction · 0.85
fetch_topicsMethod · 0.80
parent_topic_idsMethod · 0.80

Tested by

no test coverage detected