fn extract_contents_expr(
expr: &Bound<'_, PyAny>,
schema: &Schema,
) -> PyResult<ViewContentsSelector>
Expand description
Convert a ViewContentsLike
into a ViewContentsSelector
.
ViewContentsLike = Union[str, Dict[str, Union[ComponentLike, Sequence[ComponentLike]]]]
We cant do this with the normal FromPyObject
mechanisms because we want access to the
QueryEngine
to resolve the entity paths.