Похожие чаты

Async function fetch_link(){ const data = await

db.query("select url,city from tbl_med_local_link");
return data.map(x=>(x.url,x.city))
}

fetch_link()
.then((data)=>{
console.log(data);
})

i m getting array of only city
why i m not able to fetch url ?

4 ответов

9 просмотров
decoder- Автор вопроса

City

Have you checked the database, any records come up for that query?

return data.map(x=>(x.url,x.city)) Not sure what you're meaning to do here but this isn't valid

(a, b) returns b

Похожие вопросы

Обсуждают сегодня

Карта сайта