Velo Coding - Change column from Text to Boolean

Hey everyone. I do not know how to code and need some help for a basic change in the dataset column settings.

this is the website, the available button filter the cars in the database, when clicked only showing the available ones:

this is how the dataset looks like:

this is how the code looks like:

import wixData from ‘wix-data’ ;

$w . onReady ( function () {

$w ( '#selectionTags1' ). onChange (() => { 
    const  selectedTag  =  $w ( '#selectionTags1' ). value ; 

    let  filter  =  wixData . filter (); 

    if  ( selectedTag . length  >  0 ) { 
        filter  =  filter . hasSome ( "available" ,  selectedTag ); 
    } 

    $w ( '#dataset1' ). setFilter ( filter ); 

}) 

});

but I want to change thee Available column to Boolean instead of Text:

I know that I have to change the Code but I do not know how… could anyone help me?

Thank youuuu :slight_smile:

I think you can do this without any code, just by setting the filter on the Dataset in the editor.