Skip to main content

withPath

Callable


  • Appends path segments to a reference, so a producer addresses something inside an entity without interpolating a string and re-parsing it. Works on a reference that already has a path, and returns the reference itself when given no segments. One appended segment is the inverse of parent.

    Throws on a segment the grammar refuses rather than splicing it in: a segment carrying / would otherwise re-parse as two. Also throws when the result would exceed MAX_LENGTH.


    Parameters

    Returns EntityReference