Function abs_to_rel

Source
pub fn abs_to_rel(path: &str) -> &str
Expand description

Converts an absolute path like “projects/{PROJECT_ID}/databases/(default)/documents/my_collection/document_id” into a relative document path like “my_collection/document_id”

This is usually used to get a suitable path for delete.