wixData.query("Media/Files").eq does not work properly

I have the following code script:

export function checkOriginalFileName ( name ) {
wixData . query ( “Media/Files” )
. eq ( “originalFileName” , name )
. find ()
. then (( results ) => {
console . log ( results );
})
}

My objective is to check if already exists in Media/Files, then should contain the item with ‘originalFileName’ = . But the above script always gives all items in Media/Files as the result.

Need advice on what I did wrong.