Last active
January 19, 2022 16:05
-
-
Save GaetanoPiazzolla/b9cde8bc8c7a16d4fcde8acaa8a8b74b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const store = createStore() | |
| .setTables({pets: {fido: {species: 'dog'}}}) | |
| .setSchema({ | |
| pets: { | |
| species: {type: 'string'}, | |
| sold: {type: 'boolean', default: false}, | |
| }, | |
| }); | |
| console.log(store.getTables()); | |
| // -> {pets: {fido: {species: 'dog', sold: false}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment