javascript - Insert in loki js not working -
i'm working on ionic project need store data locally , i'm using loki js, created factory using loki js , initializing , i'm creating database , while inserting not working. according documentation https://rawgit.com/techfort/lokijs/master/jsdoc/collection.html can insert object or array.
but either of them not passing values loki db created.
how solve this?
a sample code useful if can't insert object (and you're loading db existing file) sounds if you're trying access collection outside loaddatabase callback. lokijs supports bulk inserts passing array of objects.
Comments
Post a Comment