This my code, but it doesn’t work. Every time the text message says no and it doesn’t insert anything to the database.
import wixData from 'wix-data';
export function sumbit_click(event) {
let toInsert = {
"title": "hello"
};
wixData.insert("Shoes", toInsert)
.then(() => {
$w("#textmessage").text = "YES.";
}).catch((err) => {
$w("#textmessage").text = "No";
})
}