pub async fn save_snapshot( state: AppState, data: RefContent, ) -> Result<(), AppError>
Saves the document by replacing the head with a new snapshot.
The snapshot at the previous head is not deleted.