Closed f3ath closed 1 year ago
There's already an implicit conversion from NodesType
to LogicalType
that does this.
https://www.ietf.org/archive/id/draft-ietf-jsonpath-base-11.html#name-type-conversion
The function isn't necessary.
Ah, I missed the following note in 2.4.8:
Note: a singular query may be used anywhere where a ValueType is expected, so there is no need to use the "value" function extension with a singular query.
Now I see that my question does not make sense.
There is the
value()
function to convertNodesType
to a value to avoid implicit type conversions. Should there also be a similarLogicalType exists(Nodes nodes)
function? An alternative name could beexist()
orisNotEmpty()
.