Hi. Great video! In the get() video, you populated text fields (Name and City) with the results. Can you give me a clue on how to do that with the ()query? So that I can match the name and city field in my dataset to the Name and City texts
top of page
bottom of page
Hi, thanks! The principle should be exactly the same just that query returns an array of objects so you need to single out an item (items[0] for example) to populate the elements with.
const queryResult = await wixData.query("Collection").find(); const item = queryResult.items[0]; $w("#name").text = item.name; $w("#city").text = item.city;
Best,
Eitan