{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/loopback/issues/1858","labels_url":"https://api.github.com/repos/strongloop/loopback/issues/1858/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback/issues/1858/comments","events_url":"https://api.github.com/repos/strongloop/loopback/issues/1858/events","html_url":"https://github.com/strongloop/loopback/issues/1858","id":120517302,"number":1858,"title":"persistentModel.find() returns wrappedPromise { <pending> }","user":{"login":"nkhaitan","id":3487187,"avatar_url":"https://avatars.githubusercontent.com/u/3487187?v=3","gravatar_id":"","url":"https://api.github.com/users/nkhaitan","html_url":"https://github.com/nkhaitan","followers_url":"https://api.github.com/users/nkhaitan/followers","following_url":"https://api.github.com/users/nkhaitan/following{/other_user}","gists_url":"https://api.github.com/users/nkhaitan/gists{/gist_id}","starred_url":"https://api.github.com/users/nkhaitan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkhaitan/subscriptions","organizations_url":"https://api.github.com/users/nkhaitan/orgs","repos_url":"https://api.github.com/users/nkhaitan/repos","events_url":"https://api.github.com/users/nkhaitan/events{/privacy}","received_events_url":"https://api.github.com/users/nkhaitan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback/labels/discussion","name":"discussion","color":"d4c5f9"},{"url":"https://api.github.com/repos/strongloop/loopback/labels/triage","name":"triage","color":"eb6420"}],"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":5,"created_at":"2015-12-05T01:09:22Z","updated_at":"2015-12-07T15:35:59Z","closed_at":"2015-12-07T15:35:59Z","body":"Hello,\r\n\r\nA simple .find() on a persistentModel returns  wrappedPromise { <pending> } instead of the result. The following code still renders the same issue:\r\n\r\n\r\n\t$categories = app.models.Category.find({order: 'name ASC'})\r\n\t.then(function(result){\r\n\t\treturn result\r\n\t})\r\n\t.catch(function(err){\r\n\t\treturn err\r\n\t});\r\n\r\nHowever, the only exception here is that console.log(result) outputs the desired result. However, in no other situation am I able to extract and store the object. Please help ASAP!!\r\n\r\nThanks,\r\n\r\nNilesh"}}