Skip to main content

graft

Function graft 

Source
pub fn graft(
    results: &mut [ParseMap],
    path: &[String],
    fetched: &IndexMap<String, ParseMap>,
)
Expand description

Replace the pointers at path with the fetched objects.

replacePointers (RestQuery.js:1324-1356). An unresolved pointer is dropped, not left as a pointer: inside an array the element disappears, and at a scalar key the key becomes absent. That is how a pointer to a row the caller cannot read stops being evidence that the row exists.