ngnx-data-proxy-jsonfile
v1.0.22
Published
Fetch and save data to a local JSON file.
Downloads
60
Readme
NGNX.DATA.JsonFileProxy
npm i ngnx-data-proxy-jsonfile
require('ngnx-data-proxy-jsonfile')
const Person = new NGN.DATA.Model({
fields: {
firstname: null,
lastname: null
},
proxy: new NGNX.DATA.JsonFileProxy('./mydb.json')
})
The JSON file proxy is used to perform CRUD operations from an NGN.DATA.Store and/or NGN.DATA.Model.