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

Method update_topic_synonyms

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

Source from the content-addressed store, hash-verified

465 }
466
467 async fn update_topic_synonyms(
468 &self,
469 ctx: &Context<'_>,
470 input: UpdateTopicSynonymsInput,
471 ) -> Result<UpdateTopicSynonymsPayload> {
472 let store = ctx.data_unchecked::<Store>();
473 let client_mutation_id = input.client_mutation_id.clone();
474
475 let git::UpdateTopicSynonymsResult {
476 alerts, repo_topic, ..
477 } = store.update_topic_synonyms(input).await?;
478
479 let updated_topic: Topic = store
480 .fetch_topic(repo_topic.topic_id().to_owned())
481 .await?
482 .try_into()?;
483
484 Ok(UpdateTopicSynonymsPayload {
485 alerts: alerts.iter().map(alert::Alert::from).collect_vec(),
486 client_mutation_id,
487 updated_repo_topic: repo_topic.into(),
488 updated_topic,
489 })
490 }
491
492 async fn upsert_link(
493 &self,

Callers

nothing calls this directly

Calls 4

try_intoMethod · 0.45
fetch_topicMethod · 0.45
topic_idMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected