Select single value from collection

The result is “undefined” using .contains and I get the same using .eq. I know I have the collection and target field correct (checked case sensitivity).

Here’s my updated code:

import wixData from “wix-data” ;

export function button1_click ( event ) {
// Runs a query on the “GameData” collection
wixData . query ( “GameData” )
//.contains(“Title”, $w(“#input1”).value)
. eq ( “Title” , $w ( “#input1” ). value )
. find () // Run the query
. then ( res => {
// Set textbox to the result of the query
//$w(“#text1”).text = items[3];
console . log ( $w ( “#input1” ). value ); // This is working fine
console . log ( res . items [ 3 ]);
});
}

I’m pretty new to Wix so I’m trying to figure out the best way to do things. I saw a tutorial (see below) that used .contains, which is why I used it.