antoniopresto / react-native-local-mongodb

react-native local mongodb storage.
MIT License
304 stars 66 forks source link

Where the data has been stored and how to save those data collection? #55

Closed ZMChoo closed 5 years ago

ZMChoo commented 5 years ago

Hi everyone, I want to develop an app to store some data in offline, did anyone know how to save data into a file or any temporary storage? And one more thing, after insert data into Datastore, where can I found those data? I have tried to console console.log(db) it and check but it shows me this

Datastore {inMemoryOnly: false, autoload: false, timestampData: false, storage: Object, filename: "testingStorage1"…} autoload : false compareStrings : undefined executor : Executor filename : "testingStorage1" inMemoryOnly : false indexes : Object persistence : Persistence storage : Object timestampData : false ttlIndexes : Object _events : Object __proto__ : EventEmitter

antoniopresto commented 5 years ago

try db.load() or config with autoload: true