diff --git a/src/domain/rolle/mutation.rs b/src/domain/rolle/mutation.rs deleted file mode 100644 index b497a47..0000000 --- a/src/domain/rolle/mutation.rs +++ /dev/null @@ -1,35 +0,0 @@ -use super::model::*; -use async_graphql::{Context, FieldResult}; -use sqlx::postgres::PgPool; - -#[derive(Default)] -pub struct RolleMutation; - -#[async_graphql::Object] -impl RolleMutation { - async fn create_rollen( - &self, - ctx: &Context<'_>, - input: RolleCreateInput, - ) -> FieldResult { - let pool = ctx.data::()?; - todo!(); - // let row = Rolle::create(pool, &input).await?; - // Ok(row) - } - - // async fn update_rollen( - // &self, - // ctx: &Context<'_>, - // input: RolleUpdateInput, - // ) -> FieldResult { - // let pool = ctx.data::()?; - // let row = Rolle::update(pool, &input).await?; - // Ok(row) - // } - // - // async fn delete_rollen(&self, ctx: &Context<'_>, id: i32) -> FieldResult { - // let pool = ctx.data::()?; - // Ok(Rolle::delete(pool, &id).await?) - // } -}