Hi All,
I want to reject values in a CDT array on the basis of a condition.
For ex - I have a CDT array of type, suppose, type!someType(a,b), where a and b are fields in CDT. Now, My array looks like below:
{
type!someType(a: 1, b: null)
type!someType(a: null, b: 1)
type!someType(a: null, b: null)
},
I want to filter this array and get only those CDT values where a <> null.
What can be the possible way to do it?
Discussion posts and replies are publicly visible
ChrisMike SchmittStefan Helzle
Thanks everyone for the elaborate responses. The solution provided worked.