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

Method delete_topic

backend/src/graphql/mutation.rs:335–355  ·  view source on GitHub ↗
(
        &self,
        ctx: &Context<'_>,
        input: DeleteTopicInput,
    )

Source from the content-addressed store, hash-verified

333 }
334
335 async fn delete_topic(
336 &self,
337 ctx: &Context<'_>,
338 input: DeleteTopicInput,
339 ) -> Result<DeleteTopicPayload> {
340 let DeleteTopicInput {
341 client_mutation_id,
342 repo_id,
343 topic_id,
344 } = input;
345 let topic_id = ExternalId::try_from(&topic_id)?;
346
347 ctx.data_unchecked::<Store>()
348 .delete_topic(repo_id.try_into()?, &topic_id)
349 .await?;
350
351 Ok(DeleteTopicPayload {
352 client_mutation_id,
353 deleted_topic_id: topic_id.to_string(),
354 })
355 }
356
357 async fn remove_topic_timerange(
358 &self,

Callers

nothing calls this directly

Calls 1

try_intoMethod · 0.45

Tested by

no test coverage detected