Creating a table from a database (without duplicate items)

Hi
If you want to remove duplicates you will need to read the items from the database using wix code :
$w.onReady(function () {
// Run a query that returns all the items in the collection
wixData.query(“my-db”)
.limit(1000)
.find()
.then(results => {
const uniqueItems = new Set(results.items)
// Now write your code to use the unique set
})
})