{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/lowdb/issues/72","labels_url":"https://api.github.com/repos/typicode/lowdb/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/typicode/lowdb/issues/72/comments","events_url":"https://api.github.com/repos/typicode/lowdb/issues/72/events","html_url":"https://github.com/typicode/lowdb/issues/72","id":115023155,"number":72,"title":"error when executing low.mixin","user":{"login":"balasivagnanam","id":4233785,"avatar_url":"https://avatars.githubusercontent.com/u/4233785?v=3","gravatar_id":"","url":"https://api.github.com/users/balasivagnanam","html_url":"https://github.com/balasivagnanam","followers_url":"https://api.github.com/users/balasivagnanam/followers","following_url":"https://api.github.com/users/balasivagnanam/following{/other_user}","gists_url":"https://api.github.com/users/balasivagnanam/gists{/gist_id}","starred_url":"https://api.github.com/users/balasivagnanam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balasivagnanam/subscriptions","organizations_url":"https://api.github.com/users/balasivagnanam/orgs","repos_url":"https://api.github.com/users/balasivagnanam/repos","events_url":"https://api.github.com/users/balasivagnanam/events{/privacy}","received_events_url":"https://api.github.com/users/balasivagnanam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-04T10:37:13Z","updated_at":"2015-11-04T16:43:19Z","closed_at":null,"body":"```\r\nvar low = require('lowdb');\r\nvar _contrib = require('underscore-contrib') // For getPath()\r\nvar _db = require('underscore.db')\r\n\r\nlow.mixin(_contrib);\r\nlow.mixin(_db);\r\n```\r\n\r\nI saw your example to insert json with inner nodes of the other json. but I get this error when I execute the same code.\r\nNot sure what is missing here.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/4233785/10935733/02d5276e-8323-11e5-81d7-a6315ff7f665.png)\r\n\r\n\r\nThanks,\r\n"},"comment":{"url":"https://api.github.com/repos/typicode/lowdb/issues/comments/153787506","html_url":"https://github.com/typicode/lowdb/issues/72#issuecomment-153787506","issue_url":"https://api.github.com/repos/typicode/lowdb/issues/72","id":153787506,"user":{"login":"typicode","id":5502029,"avatar_url":"https://avatars.githubusercontent.com/u/5502029?v=3","gravatar_id":"","url":"https://api.github.com/users/typicode","html_url":"https://github.com/typicode","followers_url":"https://api.github.com/users/typicode/followers","following_url":"https://api.github.com/users/typicode/following{/other_user}","gists_url":"https://api.github.com/users/typicode/gists{/gist_id}","starred_url":"https://api.github.com/users/typicode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typicode/subscriptions","organizations_url":"https://api.github.com/users/typicode/orgs","repos_url":"https://api.github.com/users/typicode/repos","events_url":"https://api.github.com/users/typicode/events{/privacy}","received_events_url":"https://api.github.com/users/typicode/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T16:43:19Z","updated_at":"2015-11-04T16:43:19Z","body":"It's actually because you're chaining lodash and other methods without `chain()`. The following code shouldn't throw an error:\r\n\r\n```js\r\ndbinstance('results')\r\n  .chain()\r\n  .getById(page.id) // I think you want to get by id here\r\n  .getPath('components')\r\n  .insert({component :'header',\r\n    condition : \"Standard MOM Header should be present\",\r\n    result : \"Fail\" ,\r\n    remarks: \"Missing Standard Header\"\r\n  })\r\n  .value()\r\n```"}}