Given a ``path`` to a subcollection, return that subcollection. .. versionadded:: 1.0
(self, path: str)
| 344 | return coll, rest |
| 345 | |
| 346 | def subcollection_from_path(self, path: str) -> "Collection": |
| 347 | """ |
| 348 | Given a ``path`` to a subcollection, return that subcollection. |
| 349 | |
| 350 | .. versionadded:: 1.0 |
| 351 | """ |
| 352 | parts = path.split(".") |
| 353 | collection = self |
| 354 | while parts: |
| 355 | collection = collection.collections[parts.pop(0)] |
| 356 | return collection |
| 357 | |
| 358 | def __getitem__(self, name: Optional[str] = None) -> Any: |
| 359 | """ |
no test coverage detected