{"action":"closed","issue":{"url":"https://api.github.com/repos/balderdashy/waterline-cursor/issues/1","labels_url":"https://api.github.com/repos/balderdashy/waterline-cursor/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline-cursor/issues/1/comments","events_url":"https://api.github.com/repos/balderdashy/waterline-cursor/issues/1/events","html_url":"https://github.com/balderdashy/waterline-cursor/issues/1","id":40101532,"number":1,"title":"waterline-cursor@0.0.5 causing undefined attributes to be added when populating association","user":{"login":"AnalogJ","id":891875,"avatar_url":"https://avatars.githubusercontent.com/u/891875?v=3","gravatar_id":"","url":"https://api.github.com/users/AnalogJ","html_url":"https://github.com/AnalogJ","followers_url":"https://api.github.com/users/AnalogJ/followers","following_url":"https://api.github.com/users/AnalogJ/following{/other_user}","gists_url":"https://api.github.com/users/AnalogJ/gists{/gist_id}","starred_url":"https://api.github.com/users/AnalogJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnalogJ/subscriptions","organizations_url":"https://api.github.com/users/AnalogJ/orgs","repos_url":"https://api.github.com/users/AnalogJ/repos","events_url":"https://api.github.com/users/AnalogJ/events{/privacy}","received_events_url":"https://api.github.com/users/AnalogJ/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/balderdashy/waterline-cursor/labels/needs%20failing%20test","name":"needs failing test","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-08-12T21:33:15Z","updated_at":"2015-08-25T01:47:47Z","closed_at":"2015-08-25T01:47:47Z","body":"After my most recent deploy of my application, I started running into issues with my app in a staging environment. I traced it back to a version update in the waterline-cursor library. In my development env I'm using 0.0.3, and in staging I see the issue because npm is using 0.0.5 (it goes away if I set a hard dependency on 0.0.3)\r\n\r\nBasically I noticed that after a `findOne` query, with a `populate` on a collection, I have an additional `undefined` attribute that points to an empty array. When I comment out the `populate` call, there's no extra attribute. This is occurring with the `sails-postgresql` adapter. \r\n\r\n"}}