I'm working on a Ionic project where I need to store data locally and I'm using Loki js, I created a factory using Loki js and it is initializing and I'm creating the database and while inserting it is not working. According to their documentation https://rawgit.com/techfort/LokiJS/master/jsdoc/Collection.html we can insert object or array.
But either of them are not passing the values to the loki DB created.
How to solve this?