@skmedia Thank you for your comment but i think you misunderstood, the const id = “xxxx” is for show prupose here only not on the backend, when i declare let id = wixData.get(“myDatabaseName”, ‘title’) i already deleted the const id but the output is not showing on my repeater.
What should i do or what i’m doing wrong
Simply i want that let id will take the value from my database field value.
right now my backend look like this but its not showing any output in my repeater:
import { fetch } from 'wix-fetch';
import wixData from 'wix-data';
export async function getData() {
const apiKey = "apikey";
let id = wixData.get('#myDatabaseName', 'title'); //Not working after deleting const id above
//imaginary url example below
const response = await fetch("https://www.exampleapi.com/data/d5/feed?&id=" + id + "&key=" + apiKey, {
method: 'get'
});