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

Method owner

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

Source from the content-addressed store, hash-verified

88 }
89
90 pub async fn owner(&self, ctx: &Context<'_>) -> Result<Option<User>> {
91 match self {
92 Repository::Default => Ok(None),
93 Repository::Fetched { owner_id, .. } => {
94 let user = ctx
95 .data_unchecked::<Store>()
96 .user(owner_id.to_string())
97 .await?;
98 Ok(user)
99 }
100 }
101 }
102
103 async fn root_topic(&self, ctx: &Context<'_>) -> Result<Topic> {
104 ctx.data_unchecked::<Store>()

Callers

nothing calls this directly

Calls 1

userMethod · 0.45

Tested by

no test coverage detected