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

Method organization

backend/src/graphql/repository.rs:75–88  ·  view source on GitHub ↗
(&self, ctx: &Context<'_>)

Source from the content-addressed store, hash-verified

73 }
74
75 async fn organization(&self, ctx: &Context<'_>) -> Result<Organization> {
76 match self {
77 Self::Default => Ok(Organization::Wiki),
78 Self::Fetched {
79 organization_id, ..
80 } => ctx
81 .data_unchecked::<Store>()
82 .organization(organization_id.to_string())
83 .await?
84 .ok_or_else(|| {
85 Error::NotFound(format!("no org found: {}", organization_id.as_str()))
86 }),
87 }
88 }
89
90 pub async fn owner(&self, ctx: &Context<'_>) -> Result<Option<User>> {
91 match self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected