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

Method delete_session

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

Source from the content-addressed store, hash-verified

313 }
314
315 async fn delete_session(
316 &self,
317 ctx: &Context<'_>,
318 input: DeleteSessionInput,
319 ) -> Result<DeleteSessionPayload> {
320 let DeleteSessionInput {
321 client_mutation_id,
322 session_id,
323 } = input;
324 let psql::DeleteSessionResult { deleted_session_id } = ctx
325 .data_unchecked::<Store>()
326 .delete_session(session_id.to_string())
327 .await?;
328
329 Ok(DeleteSessionPayload {
330 client_mutation_id,
331 deleted_session_id: Some(ID(deleted_session_id)),
332 })
333 }
334
335 async fn delete_topic(
336 &self,

Callers

nothing calls this directly

Calls 1

IDFunction · 0.85

Tested by

no test coverage detected