Unable to get the fetched result in database

Hi! Make sure that the fetch request is actually returning data and that the r variable is not empty. You can add a console.log(r) statement after the r = httpResponse.json() line to check the value of r. Show that the tI object you are passing to the wixData.insert function is correct. You could add a console.log(tI) statement before the wixData.insert line to check the value of tI. Is the wixData.insert function is being called correctly and that there are no errors being thrown? You could add a .catch((error) => console.log(error)) block after the wixData.insert line to catch any errors that may be occurring. Check out: https://www.wix.com/corvid/reference/wix-data.html#insert