We currently support querying the root object using paths (e.g. .foo.bar) and also variables ($foo.bar since #5094).
We've had at least one report thus far requesting to query the result of functions:
.url = "https://vector.dev"
.scheme = parse_url(.url).scheme // parse_url returns a `Value::Map`
.scheme // "https"
I'm not necessarily advocating we support this (it might be a slippery slope from here to supporting methods, although I don't think that's necessarily the case), but it's worth tracking this, given that more people might be looking for a similar feature.
We currently support querying the root object using paths (e.g.
.foo.bar) and also variables ($foo.barsince #5094).We've had at least one report thus far requesting to query the result of functions:
I'm not necessarily advocating we support this (it might be a slippery slope from here to supporting methods, although I don't think that's necessarily the case), but it's worth tracking this, given that more people might be looking for a similar feature.