I tried to explore this example on dojo And then, I just noticed these lines of code:
dataSource: {
data: products,
schema: {
model: {
fields: {
ProductName: { type: "string" },
UnitPrice: { type: "number" },
UnitsInStock: { type: "number" },
Discontinued: { type: "boolean" }
}
}
},
I tried to delete the whole schema
thing and it works just fine. It doesn't affect the columns and fields and even the loading performance.
Now I wonder the purpose of that thing. I do some quick research, and I found nothing specific.