instance method SpahQL#keyName
SpahQL#keyName() → String or null
Returns the name for the first item in this set, based on its path. If the item is the root or if the result was not created from a path query then the method will return null.
select("/foo").keyName() //-> "foo"
select("/foo/bar/.size").keyName() // -> ".size"