Closed m0agh closed 8 years ago
Your myDumpedString
is actually an Array of Objects. Use JSON.stringify
- as your do for the console.log.
Actually in this case what you probably want is just db.bulkDocs()
. It takes an array of documents and inserts them into PouchDB: https://pouchdb.com/api.html#batch_create
PouchDB load can only be used if you 1) use bulkDocs() to load those documents into a Pouch/Couch somewhere, and then 2) dump from that database, which then dumps a special file containing revision markers and other special Pouch/Couch stuff.
i am having json file with 1000000 objects. not sure to upload it into the PouchDB, Need Help
hi,
i have a json file and i want to load these data in my pouchDB in ionic 2. this is my code:
when i run this code, i see the json data in console but after that i will get this error:
any help? is this way correct? or i should use another way? Thanks