Repository navigation
v5.0.0-beta.2
Pre-release
Pre-release
·
33 commits
to main
since this release
Patch Changes
-
#436
8a8a282Thanks @jsm1t! - Fixcontains any/contains allthrowing on resources where the field is not
set.The handler rejected any non-array value, so a predicate such as
custom(fields(orderNumbers contains any ("R-123")))raised
The field 'orderNumbers' does not support this expression.as soon as one
resource in the collection lacked the field — failing the entire query rather
than filtering that resource out. Real commercetools treats an unset set as
having no members, so it simply does not match.An unset (
undefinedornull) field now evaluates tofalse. A field that is
present but is not a set still raises aPredicateError, since that is a
genuine type mismatch.