hasTablesSchema
The hasTablesSchema method returns a boolean indicating whether the Store currently has a TablesSchema applied to it.
hasTablesSchema(): boolean| returns | boolean | Whether the |
|---|
Example
This example sets a TablesSchema and checks that it is present.
import {createStore} from 'tinybase';
const store = createStore().setTablesSchema({
pets: {
price: {type: 'number'},
},
});
console.log(store.hasTablesSchema());
// -> true
store.delTablesSchema();
console.log(store.hasTablesSchema());
// -> false
Since
v4.1.1