I am sorry, I only got to putting the code in now and it is not working. The log shows everything correct but the query is coming back empty. Here is the relevant piece of code. I am using push to add the selected items to an array. I then use the map function to add the " to each entry. I then run the hasSome query but it returns nothing…
…
if ( $w ( ‘#checkRefuge’ ). checked ) {
selPOIs . push ( “Refuge” );
}
if ( $w ( ‘#checkSnackBar’ ). checked ) {
selPOIs . push ( “Snack Bar” );
}
console . log ( "selPOIs: " + selPOIs );
// Add the Quotes to each entry
selPOIs = selPOIs . map ( i => '"' + i + '"' );
console . log ( "Quoted selPOIs: " + selPOIs );
//Check for empty selPIOs
**let** numPOIs = selPOIs . length
console . log ( "numPOIs: " + numPOIs );
//POIs have been selected
**if** ( numPOIs > 0 ) {
console . log ( "POIs have been selected, starting search" );
wixData . query ( "PointsofInterest" )
. hasSome ( "type" , selPOIs )
. find ()
. then (( results ) => {