https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-filtering#primitive-arrays provides guidance on filtering based on the presence of a primitive value in an array property, but does not provide guidance on filtering based on an array being empty or non-empty. For example, if one wants to filter such that only resources with an empty foo[] array are returned, what would the syntax be? What about a non-empty foo[]?
Aside: the existing guidance seems questionable, since it assumes a relationship between the singular and plural forms of a property that is subtle and may not hold in some corner cases.
https://cloud.ibm.com/docs/api-handbook?topic=api-handbook-filtering#primitive-arrays provides guidance on filtering based on the presence of a primitive value in an array property, but does not provide guidance on filtering based on an array being empty or non-empty. For example, if one wants to filter such that only resources with an empty
foo[]array are returned, what would the syntax be? What about a non-emptyfoo[]?Aside: the existing guidance seems questionable, since it assumes a relationship between the singular and plural forms of a property that is subtle and may not hold in some corner cases.