Reference fields within wix store the data ID as the main Value, This would be the referenced data’s _id field. So a hasSome record needs to be used to search that Items ID, Not a field contained within the ID.
Data = Reference field in database 1 has 3 items with ID’s (ID1, ID2, ID3) to search this you would utilise
$w('#dataset1').setFilter(wixData.filter().hasSome("eventTyp",["ID1", "ID3"]))
This would return items 1 and 3 of the database.
If it is a Text field rather than a reference field then put the items within an array still
Data = Text field in database 1 has 3 items with Strings (Blue, blue, Red, Black, Purple) to search this you would utilise
$w('#dataset1').setFilter(wixData.filter().hasSome("eventTyp",["Blue", "Black"]))
This would return items 1 and 4 only,
Note: This will not return item 2 as the Has Some filter is case sensitive.
On another note if you only want to check a text field for a single string without case sensitivity utilise
IE Text field in database 1 has 3 items with Strings (Blue, blue, Red, Black, Purple) to search this you would utilise
$w('#dataset1').setFilter(wixData.filter().contains("eventTyp","blue"))
This would return items 1 & 2 as the query is a single string with contains and is not case sensitive.