{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1800","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1800/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1800/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1800/events","html_url":"https://github.com/strongloop/loopback/issues/1800","id":115422524,"number":1800,"title":"Bug in data checking in find function","user":{"login":"mike-aungsan","id":2186809,"avatar_url":"https://avatars.githubusercontent.com/u/2186809?v=3","gravatar_id":"","url":"https://api.github.com/users/mike-aungsan","html_url":"https://github.com/mike-aungsan","followers_url":"https://api.github.com/users/mike-aungsan/followers","following_url":"https://api.github.com/users/mike-aungsan/following{/other_user}","gists_url":"https://api.github.com/users/mike-aungsan/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-aungsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-aungsan/subscriptions","organizations_url":"https://api.github.com/users/mike-aungsan/orgs","repos_url":"https://api.github.com/users/mike-aungsan/repos","events_url":"https://api.github.com/users/mike-aungsan/events{/privacy}","received_events_url":"https://api.github.com/users/mike-aungsan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/Beginner%20Friendly","name":"Beginner Friendly","color":"00DD00"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/waiting","name":"waiting","color":"F5ECCE"}],"state":"closed","locked":false,"assignee":{"login":"gunjpan","id":14811089,"avatar_url":"https://avatars.githubusercontent.com/u/14811089?v=3","gravatar_id":"","url":"https://api.github.com/users/gunjpan","html_url":"https://github.com/gunjpan","followers_url":"https://api.github.com/users/gunjpan/followers","following_url":"https://api.github.com/users/gunjpan/following{/other_user}","gists_url":"https://api.github.com/users/gunjpan/gists{/gist_id}","starred_url":"https://api.github.com/users/gunjpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunjpan/subscriptions","organizations_url":"https://api.github.com/users/gunjpan/orgs","repos_url":"https://api.github.com/users/gunjpan/repos","events_url":"https://api.github.com/users/gunjpan/events{/privacy}","received_events_url":"https://api.github.com/users/gunjpan/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-06T02:42:52Z","updated_at":"2015-12-10T07:20:06Z","closed_at":"2015-12-10T07:20:06Z","body":"Let's say userId is undefined, it probably translated into empty array and it return everything from DB. \r\n\r\n    var Team = app.models.team\r\n    Team.find({'fields': {'projectId': true}, 'where': {memberId: userId} }, function (err, projectIds) {\r\n    })"}}