the read
function takes three arguments, the first is the env
having a path
, what is the path
for? There doesn't seem to be any documentation for this. I'm using recursive queries, and I'd like to pass down the path from which I'm calling, should I use/conj-onto the path
for this?
@decoursin After parsing, Om Next adds :om-path
meta-data to the result so that components can see where they are in the data-tree later on. The :path
key in env
is taken as the root path. Unless you override it (I'm not sure what the intention of doing that would be) then it is always an empty path, i.e. []
.
:path
doesn't get built as the parser steps through the query, so wouldn't work for you. However you could easily add some logic to your parsing function to conj onto your own path key.
@jthomson Thank you.