Closed kennyjwilli closed 4 years ago
As far as I'm concerned those two queries are not legally mergeable: they have diff parameters, which indicate a desire for different result. Combining them makes no sense. A query also returns a map, so having them in the same EQL expression is also non-sensical. You must split such an EQL expression ( one that contains duplicate query keys with differing parameters), not merge it.
Returning nil is perhaps non-perfect, but it is a way to indicate an error condition that can be composed.
What is the expected behavior when calling
merge-queries
with a property that has parameters? I would expect a similar behavior to Clojure'smerge
, however that is not what I'm seeing.This works as expected.
I would have expected
:a
to have the{:x 1}
param map added to it.nil
is a very strange return.