Skip to main content

unnest_array

Function unnest_array 

Source
pub fn unnest_array(
    doc: &Document,
    path: &[PathSegment],
) -> StorageBackendResult<Vec<Document>>
Expand description

Unnest an array at path into a sequence of synthesised documents. Each emitted document is a clone of the source merged with two metadata fields:

  • <path>._unnested – the array element value.
  • _unnest_index – the element’s 0-based index.