pub async fn save_draft(
pool: &Pool,
page_type_id: i64,
document: Value,
created_by: Option<i64>,
) -> Result<PageTypeSchema, ExecError>Expand description
Upsert the single draft for a page type with document. Creates the
draft (version = published+1) if none exists.
ยงErrors
Propagates query / write failures.