Database single search

import wixData from 'wix-data';

export function searchButton_onClick(event) {

wixData.query('my-collection')

.contains('physicalIssue', $w('#searchButton').value)

.find()

.then(res => {

$w('#resultsTable').rows = res.items;

});

}