Data Source
Data Source
// create an array of objects
const fruits = [
{ name: "grapes", color: "green"},
{ name: "bananas", color: "yellow"},
{ name: "apples", color: "red"},
];
// create an IndexedDB store and add the array of objects to the it
const source = new wire.data.DataSource("indexed-db", {
Provider: {
stores: [
{ name: "My Store", data: fruits }
]}
});Query
Last updated