Sanity Library Reference Docs
    Preparing search index...
    • The scope-var access chain a node spells, if it is one: a Parameter root with any run of attribute/element accesses on top ($fields.doc.title, $activities[0].status). Group wrapping is transparent. undefined for anything else — including chains crossing a deref, whose tail lives on a dataset document rather than the scope.

      Parameters

      • node: ExprNode

      Returns ConditionRead | undefined