{"action":"created","issue":{"url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/70","labels_url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/70/comments","events_url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/70/events","html_url":"https://github.com/mccormicka/Mockgoose/issues/70","id":36812561,"number":70,"title":"select key in array","user":{"login":"qraynaud","id":65991,"avatar_url":"https://avatars.githubusercontent.com/u/65991?v=3","gravatar_id":"","url":"https://api.github.com/users/qraynaud","html_url":"https://github.com/qraynaud","followers_url":"https://api.github.com/users/qraynaud/followers","following_url":"https://api.github.com/users/qraynaud/following{/other_user}","gists_url":"https://api.github.com/users/qraynaud/gists{/gist_id}","starred_url":"https://api.github.com/users/qraynaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qraynaud/subscriptions","organizations_url":"https://api.github.com/users/qraynaud/orgs","repos_url":"https://api.github.com/users/qraynaud/repos","events_url":"https://api.github.com/users/qraynaud/events{/privacy}","received_events_url":"https://api.github.com/users/qraynaud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-30T16:14:16Z","updated_at":"2015-11-19T20:27:59Z","closed_at":null,"body":"I'm having a strange issue with mockgoose.\r\n\r\nI write the following mongoose request (in my data model, modules is an array of object):\r\n```js\r\nModel\r\n        .where({ \"user_id\": userId, \"modules.state\": \"done\" })\r\n        .select(\"id level modules._id modules.status modules.state\")\r\n        .exec(/* ... */);\r\n```\r\n\r\nAnd I get back an object looking like this:\r\n```js\r\n{\r\n  \"id\": \"<some_id>\",\r\n  \"level\": 3,\r\n  \"modules\": [ {} ]\r\n}\r\n```\r\n\r\nThere are no keys in the objects inside modules. I believe this is a bug in mockgoose because this works properly in mongo / barebone mongoose."},"comment":{"url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/comments/158188108","html_url":"https://github.com/mccormicka/Mockgoose/issues/70#issuecomment-158188108","issue_url":"https://api.github.com/repos/mccormicka/Mockgoose/issues/70","id":158188108,"user":{"login":"winfinit","id":1187417,"avatar_url":"https://avatars.githubusercontent.com/u/1187417?v=3","gravatar_id":"","url":"https://api.github.com/users/winfinit","html_url":"https://github.com/winfinit","followers_url":"https://api.github.com/users/winfinit/followers","following_url":"https://api.github.com/users/winfinit/following{/other_user}","gists_url":"https://api.github.com/users/winfinit/gists{/gist_id}","starred_url":"https://api.github.com/users/winfinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winfinit/subscriptions","organizations_url":"https://api.github.com/users/winfinit/orgs","repos_url":"https://api.github.com/users/winfinit/repos","events_url":"https://api.github.com/users/winfinit/events{/privacy}","received_events_url":"https://api.github.com/users/winfinit/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T20:27:59Z","updated_at":"2015-11-19T20:27:59Z","body":"this should be resolved with 5.0 release"}}