Open alaviss opened 4 years ago
You need limit 1, otherwise it will return a seq.
You need limit 1, otherwise it will return a seq.
I know. The idea is that this should not be needed, as we can clearly see from the schema that there can only be at most one element from this kind of matching.
Ormin maybe not so smart!
Since Ormin will never be "smart" (it's just software), easier and more predictable rules don't hurt. The limit 1
is fine. However, if you disagree and are willing to implement it, ignore me.
Given a schema like this:
I'd expect that
or
Would work without
limit 1
.The error message is also confusing:
Took me a moment to realize that it was trying to return a seq.