I need to write a Gosu query to list out the records in a table. I use a compare operator to filter out multiple columns based on some criteria. I need to filter out one particular column which is of type array. Eg The table PaymentDetails has a column of CardTypes which is of Array. I need to filter out of cardTypes only with the value "Visa". How do i achieve this?
For eg,
var List = Query.make(PolicyPeriod)
.compare("Column1" , Equals , true)
.subselect("ID",CompareNotIn,entity.Name,"PolicyPeriod")
.join("Entity2")
.join("Entity3")
***.compare("CardType" , Equals ,CardType.TC_VISA )***
.select()