pub async fn execute(
        id: String,
        title: String,
        start: NaiveDate,
        end: NaiveDate,
    ) -> Result<String, TelescopeError> {
        return send_query::<Self>(create_semester::Variables {
            id,
            title,
            start,
            end,
        })
        .await
        // Extract semester ID.
        .map(|r| r.insert_semesters_one.unwrap().semester_id);
    }
/// Create a semester. Return the semester ID or an error.
Create a semester. Return the semester ID or an error.
Create a semester . Return the semester ID or an error .
pub async fn execute(
        id: String,
        title: String,
        start: NaiveDate,
        end: NaiveDate,
    ) -> Result<String, TelescopeError> {
        return send_query::<Self>(create_semester::Variables {
            id,
            title,
            start,
            end,
        })
        .await
        // Extract semester ID.
        .map(|r| r.insert_semesters_one.unwrap().semester_id);
    }
pub async fn execute ( id : String , title : String , start : NaiveDate , end : NaiveDate , ) -> Result < String , TelescopeError > { return send_query :: < Self > ( create_semester :: Variables { id , title , start , end , } ) . await // Extract semester ID. . map ( | r | r . insert_semesters_one . unwrap ( ) . semester_id ) ; }
Create a semester.
Create a semester .
id
String
title
String
start
NaiveDate
end
NaiveDate
id
String
title
String
start
NaiveDate
end
NaiveDate