remove rolle mutation file
This commit is contained in:
@@ -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<Rolle> {
|
||||
let pool = ctx.data::<PgPool>()?;
|
||||
todo!();
|
||||
// let row = Rolle::create(pool, &input).await?;
|
||||
// Ok(row)
|
||||
}
|
||||
|
||||
// async fn update_rollen(
|
||||
// &self,
|
||||
// ctx: &Context<'_>,
|
||||
// input: RolleUpdateInput,
|
||||
// ) -> FieldResult<Rolle> {
|
||||
// let pool = ctx.data::<PgPool>()?;
|
||||
// let row = Rolle::update(pool, &input).await?;
|
||||
// Ok(row)
|
||||
// }
|
||||
//
|
||||
// async fn delete_rollen(&self, ctx: &Context<'_>, id: i32) -> FieldResult<bool> {
|
||||
// let pool = ctx.data::<PgPool>()?;
|
||||
// Ok(Rolle::delete(pool, &id).await?)
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user