{"action":"opened","number":154,"pull_request":{"url":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154","id":98556707,"html_url":"https://github.com/feathersjs/feathers-mongoose/pull/154","diff_url":"https://github.com/feathersjs/feathers-mongoose/pull/154.diff","patch_url":"https://github.com/feathersjs/feathers-mongoose/pull/154.patch","issue_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/154","number":154,"state":"open","locked":false,"title":"Update service.js for limit query results according to criteria when get doc by _id","user":{"login":"thREam","id":4133289,"avatar_url":"https://avatars.githubusercontent.com/u/4133289?v=3","gravatar_id":"","url":"https://api.github.com/users/thREam","html_url":"https://github.com/thREam","followers_url":"https://api.github.com/users/thREam/followers","following_url":"https://api.github.com/users/thREam/following{/other_user}","gists_url":"https://api.github.com/users/thREam/gists{/gist_id}","starred_url":"https://api.github.com/users/thREam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thREam/subscriptions","organizations_url":"https://api.github.com/users/thREam/orgs","repos_url":"https://api.github.com/users/thREam/repos","events_url":"https://api.github.com/users/thREam/events{/privacy}","received_events_url":"https://api.github.com/users/thREam/received_events","type":"User","site_admin":false},"body":"For some time, we need to qualify the user according the _id to take data:\r\nUsers can only access data associated with own, rather than just use an _id then can get the data.\r\nThis is useful in the management system.\r\n\r\nSo we hope that, when according _id to get the data,\r\nusing some criteria in params.query to limit the query result.\r\n\r\nThanks.","created_at":"2016-12-19T12:27:11Z","updated_at":"2016-12-19T12:27:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154/commits","review_comments_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154/comments","review_comment_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/154/comments","statuses_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/statuses/05066eaa10a47b0ca14d0a0fbbcb29593dd44fd3","head":{"label":"thREam:patch-1","ref":"patch-1","sha":"05066eaa10a47b0ca14d0a0fbbcb29593dd44fd3","user":{"login":"thREam","id":4133289,"avatar_url":"https://avatars.githubusercontent.com/u/4133289?v=3","gravatar_id":"","url":"https://api.github.com/users/thREam","html_url":"https://github.com/thREam","followers_url":"https://api.github.com/users/thREam/followers","following_url":"https://api.github.com/users/thREam/following{/other_user}","gists_url":"https://api.github.com/users/thREam/gists{/gist_id}","starred_url":"https://api.github.com/users/thREam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thREam/subscriptions","organizations_url":"https://api.github.com/users/thREam/orgs","repos_url":"https://api.github.com/users/thREam/repos","events_url":"https://api.github.com/users/thREam/events{/privacy}","received_events_url":"https://api.github.com/users/thREam/received_events","type":"User","site_admin":false},"repo":{"id":76858913,"name":"feathers-mongoose","full_name":"thREam/feathers-mongoose","owner":{"login":"thREam","id":4133289,"avatar_url":"https://avatars.githubusercontent.com/u/4133289?v=3","gravatar_id":"","url":"https://api.github.com/users/thREam","html_url":"https://github.com/thREam","followers_url":"https://api.github.com/users/thREam/followers","following_url":"https://api.github.com/users/thREam/following{/other_user}","gists_url":"https://api.github.com/users/thREam/gists{/gist_id}","starred_url":"https://api.github.com/users/thREam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thREam/subscriptions","organizations_url":"https://api.github.com/users/thREam/orgs","repos_url":"https://api.github.com/users/thREam/repos","events_url":"https://api.github.com/users/thREam/events{/privacy}","received_events_url":"https://api.github.com/users/thREam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thREam/feathers-mongoose","description":"Easily create a Mongoose Service for Feathersjs.","fork":true,"url":"https://api.github.com/repos/thREam/feathers-mongoose","forks_url":"https://api.github.com/repos/thREam/feathers-mongoose/forks","keys_url":"https://api.github.com/repos/thREam/feathers-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thREam/feathers-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thREam/feathers-mongoose/teams","hooks_url":"https://api.github.com/repos/thREam/feathers-mongoose/hooks","issue_events_url":"https://api.github.com/repos/thREam/feathers-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/thREam/feathers-mongoose/events","assignees_url":"https://api.github.com/repos/thREam/feathers-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/thREam/feathers-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/thREam/feathers-mongoose/tags","blobs_url":"https://api.github.com/repos/thREam/feathers-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thREam/feathers-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thREam/feathers-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/thREam/feathers-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thREam/feathers-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/thREam/feathers-mongoose/languages","stargazers_url":"https://api.github.com/repos/thREam/feathers-mongoose/stargazers","contributors_url":"https://api.github.com/repos/thREam/feathers-mongoose/contributors","subscribers_url":"https://api.github.com/repos/thREam/feathers-mongoose/subscribers","subscription_url":"https://api.github.com/repos/thREam/feathers-mongoose/subscription","commits_url":"https://api.github.com/repos/thREam/feathers-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/thREam/feathers-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/thREam/feathers-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/thREam/feathers-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/thREam/feathers-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/thREam/feathers-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thREam/feathers-mongoose/merges","archive_url":"https://api.github.com/repos/thREam/feathers-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thREam/feathers-mongoose/downloads","issues_url":"https://api.github.com/repos/thREam/feathers-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/thREam/feathers-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/thREam/feathers-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/thREam/feathers-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thREam/feathers-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/thREam/feathers-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/thREam/feathers-mongoose/deployments","created_at":"2016-12-19T12:08:18Z","updated_at":"2016-12-19T12:08:20Z","pushed_at":"2016-12-19T12:14:56Z","git_url":"git://github.com/thREam/feathers-mongoose.git","ssh_url":"git@github.com:thREam/feathers-mongoose.git","clone_url":"https://github.com/thREam/feathers-mongoose.git","svn_url":"https://github.com/thREam/feathers-mongoose","homepage":"","size":166,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"feathersjs:master","ref":"master","sha":"a56090cec02481ab6863db80135b52b0c3e3e8fb","user":{"login":"feathersjs","id":5321853,"avatar_url":"https://avatars.githubusercontent.com/u/5321853?v=3","gravatar_id":"","url":"https://api.github.com/users/feathersjs","html_url":"https://github.com/feathersjs","followers_url":"https://api.github.com/users/feathersjs/followers","following_url":"https://api.github.com/users/feathersjs/following{/other_user}","gists_url":"https://api.github.com/users/feathersjs/gists{/gist_id}","starred_url":"https://api.github.com/users/feathersjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feathersjs/subscriptions","organizations_url":"https://api.github.com/users/feathersjs/orgs","repos_url":"https://api.github.com/users/feathersjs/repos","events_url":"https://api.github.com/users/feathersjs/events{/privacy}","received_events_url":"https://api.github.com/users/feathersjs/received_events","type":"Organization","site_admin":false},"repo":{"id":16036532,"name":"feathers-mongoose","full_name":"feathersjs/feathers-mongoose","owner":{"login":"feathersjs","id":5321853,"avatar_url":"https://avatars.githubusercontent.com/u/5321853?v=3","gravatar_id":"","url":"https://api.github.com/users/feathersjs","html_url":"https://github.com/feathersjs","followers_url":"https://api.github.com/users/feathersjs/followers","following_url":"https://api.github.com/users/feathersjs/following{/other_user}","gists_url":"https://api.github.com/users/feathersjs/gists{/gist_id}","starred_url":"https://api.github.com/users/feathersjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feathersjs/subscriptions","organizations_url":"https://api.github.com/users/feathersjs/orgs","repos_url":"https://api.github.com/users/feathersjs/repos","events_url":"https://api.github.com/users/feathersjs/events{/privacy}","received_events_url":"https://api.github.com/users/feathersjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/feathersjs/feathers-mongoose","description":"Easily create a Mongoose Service for Feathersjs.","fork":false,"url":"https://api.github.com/repos/feathersjs/feathers-mongoose","forks_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/forks","keys_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/teams","hooks_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/hooks","issue_events_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/events{/number}","events_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/events","assignees_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/assignees{/user}","branches_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/branches{/branch}","tags_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/tags","blobs_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/git/refs{/sha}","trees_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/statuses/{sha}","languages_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/languages","stargazers_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/stargazers","contributors_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/contributors","subscribers_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/subscribers","subscription_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/subscription","commits_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/commits{/sha}","git_commits_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/git/commits{/sha}","comments_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/comments{/number}","issue_comment_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/comments{/number}","contents_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/contents/{+path}","compare_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/merges","archive_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/downloads","issues_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues{/number}","pulls_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls{/number}","milestones_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/milestones{/number}","notifications_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/labels{/name}","releases_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/releases{/id}","deployments_url":"https://api.github.com/repos/feathersjs/feathers-mongoose/deployments","created_at":"2014-01-18T23:48:08Z","updated_at":"2016-11-27T00:25:19Z","pushed_at":"2016-12-16T22:07:21Z","git_url":"git://github.com/feathersjs/feathers-mongoose.git","ssh_url":"git@github.com:feathersjs/feathers-mongoose.git","clone_url":"https://github.com/feathersjs/feathers-mongoose.git","svn_url":"https://github.com/feathersjs/feathers-mongoose","homepage":"","size":166,"stargazers_count":49,"watchers_count":49,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":7,"forks":25,"open_issues":7,"watchers":49,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154"},"html":{"href":"https://github.com/feathersjs/feathers-mongoose/pull/154"},"issue":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/154"},"comments":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/feathersjs/feathers-mongoose/statuses/05066eaa10a47b0ca14d0a0fbbcb29593dd44fd3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"thREam"}}