pub async fn get_doc_binary_data( state: AppState, ref_id: Uuid, ) -> Result<String, AppError>
Gets the binary automerge data for a document ref.