-
Notifications
You must be signed in to change notification settings - Fork 19
1 Configuration
David Grill edited this page Jun 2, 2017
·
1 revision
c.f. Dexie.js
c.f. Dexie.js
For each schemas you've set, you can specify some other important options to enable good state managment.
- type: can be list or biglist default list
- primary: the primary key default id
- label: the label field default label
- updated_at: last update field
- deleted_at: delete date field
You can give some api to sync data with your backend
- all: get the list from the server (the last update date will be sent as parameter)
- add: add call to your backend (the object will be passed as parameter)
- update: update call to your backend (the object will be passed as parameter)
- remove: remove call to your backend (the object will be passed as parameter)