pub async fn update_component(
pool: &Pool,
id: i64,
label: &str,
icon: &str,
description: &str,
document: Value,
) -> Result<Option<Component>, ExecError>Expand description
Update a component’s metadata + document and bump its version so referencing schemas pick the change up lazily (next open / render). The slug is immutable (it’s the reference key).
§Errors
Propagates query / write failures.