{"action":"created","comment":{"url":"https://api.github.com/repos/PPAV-inc/website/pulls/comments/155226149","pull_request_review_id":81508872,"id":155226149,"diff_hunk":"@@ -1,10 +1,15 @@\n import { makeExecutableSchema } from 'graphql-tools';\n+import { ObjectId } from 'mongodb';\n+import subDays from 'date-fns/sub_days';\n \n import getDatabase from '../database';\n \n const typeDefs = `\n+  scalar Date\n+\n   type Query {\n-    videos: [Videos]\n+    videos: [Videos],\n+    getVideos(category: String, days: Int): [Videos],","path":"server/src/schema/index.js","position":13,"original_position":13,"commit_id":"6de02a0c783421c41a19be8694af2b6bb708e296","original_commit_id":"6de02a0c783421c41a19be8694af2b6bb708e296","user":{"login":"xxhomey19","id":12113222,"avatar_url":"https://avatars2.githubusercontent.com/u/12113222?v=4","gravatar_id":"","url":"https://api.github.com/users/xxhomey19","html_url":"https://github.com/xxhomey19","followers_url":"https://api.github.com/users/xxhomey19/followers","following_url":"https://api.github.com/users/xxhomey19/following{/other_user}","gists_url":"https://api.github.com/users/xxhomey19/gists{/gist_id}","starred_url":"https://api.github.com/users/xxhomey19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xxhomey19/subscriptions","organizations_url":"https://api.github.com/users/xxhomey19/orgs","repos_url":"https://api.github.com/users/xxhomey19/repos","events_url":"https://api.github.com/users/xxhomey19/events{/privacy}","received_events_url":"https://api.github.com/users/xxhomey19/received_events","type":"User","site_admin":false},"body":"videos 這個 query 是還沒寫嗎？\r\n如果這是單一片的話應該要傳 id 進去\r\n\r\n然後這兩個名字太像了我覺得可以區分一下像是 video, getVideos","created_at":"2017-12-06T12:46:41Z","updated_at":"2017-12-06T12:46:41Z","html_url":"https://github.com/PPAV-inc/website/pull/5#discussion_r155226149","pull_request_url":"https://api.github.com/repos/PPAV-inc/website/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/comments/155226149"},"html":{"href":"https://github.com/PPAV-inc/website/pull/5#discussion_r155226149"},"pull_request":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/PPAV-inc/website/pulls/5","id":156053257,"html_url":"https://github.com/PPAV-inc/website/pull/5","diff_url":"https://github.com/PPAV-inc/website/pull/5.diff","patch_url":"https://github.com/PPAV-inc/website/pull/5.patch","issue_url":"https://api.github.com/repos/PPAV-inc/website/issues/5","number":5,"state":"open","locked":false,"title":"getHotVideos and getNewVideos resolver","user":{"login":"LittleWhiteYA","id":11289529,"avatar_url":"https://avatars0.githubusercontent.com/u/11289529?v=4","gravatar_id":"","url":"https://api.github.com/users/LittleWhiteYA","html_url":"https://github.com/LittleWhiteYA","followers_url":"https://api.github.com/users/LittleWhiteYA/followers","following_url":"https://api.github.com/users/LittleWhiteYA/following{/other_user}","gists_url":"https://api.github.com/users/LittleWhiteYA/gists{/gist_id}","starred_url":"https://api.github.com/users/LittleWhiteYA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LittleWhiteYA/subscriptions","organizations_url":"https://api.github.com/users/LittleWhiteYA/orgs","repos_url":"https://api.github.com/users/LittleWhiteYA/repos","events_url":"https://api.github.com/users/LittleWhiteYA/events{/privacy}","received_events_url":"https://api.github.com/users/LittleWhiteYA/received_events","type":"User","site_admin":false},"body":"最新影片 and 最熱門影片 resolver\r\n\r\n我現在做主要會先看 telegram bot 那邊的 models 有哪些先拉過來","created_at":"2017-12-03T09:40:25Z","updated_at":"2017-12-06T12:46:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6af39c073a59efb19708092d70acc48e6bf845b2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PPAV-inc/website/pulls/5/commits","review_comments_url":"https://api.github.com/repos/PPAV-inc/website/pulls/5/comments","review_comment_url":"https://api.github.com/repos/PPAV-inc/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PPAV-inc/website/issues/5/comments","statuses_url":"https://api.github.com/repos/PPAV-inc/website/statuses/6de02a0c783421c41a19be8694af2b6bb708e296","head":{"label":"PPAV-inc:get-hot-and-new-videos","ref":"get-hot-and-new-videos","sha":"6de02a0c783421c41a19be8694af2b6bb708e296","user":{"login":"PPAV-inc","id":29479947,"avatar_url":"https://avatars3.githubusercontent.com/u/29479947?v=4","gravatar_id":"","url":"https://api.github.com/users/PPAV-inc","html_url":"https://github.com/PPAV-inc","followers_url":"https://api.github.com/users/PPAV-inc/followers","following_url":"https://api.github.com/users/PPAV-inc/following{/other_user}","gists_url":"https://api.github.com/users/PPAV-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/PPAV-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PPAV-inc/subscriptions","organizations_url":"https://api.github.com/users/PPAV-inc/orgs","repos_url":"https://api.github.com/users/PPAV-inc/repos","events_url":"https://api.github.com/users/PPAV-inc/events{/privacy}","received_events_url":"https://api.github.com/users/PPAV-inc/received_events","type":"Organization","site_admin":false},"repo":{"id":112051631,"name":"website","full_name":"PPAV-inc/website","owner":{"login":"PPAV-inc","id":29479947,"avatar_url":"https://avatars3.githubusercontent.com/u/29479947?v=4","gravatar_id":"","url":"https://api.github.com/users/PPAV-inc","html_url":"https://github.com/PPAV-inc","followers_url":"https://api.github.com/users/PPAV-inc/followers","following_url":"https://api.github.com/users/PPAV-inc/following{/other_user}","gists_url":"https://api.github.com/users/PPAV-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/PPAV-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PPAV-inc/subscriptions","organizations_url":"https://api.github.com/users/PPAV-inc/orgs","repos_url":"https://api.github.com/users/PPAV-inc/repos","events_url":"https://api.github.com/users/PPAV-inc/events{/privacy}","received_events_url":"https://api.github.com/users/PPAV-inc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PPAV-inc/website","description":null,"fork":false,"url":"https://api.github.com/repos/PPAV-inc/website","forks_url":"https://api.github.com/repos/PPAV-inc/website/forks","keys_url":"https://api.github.com/repos/PPAV-inc/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PPAV-inc/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PPAV-inc/website/teams","hooks_url":"https://api.github.com/repos/PPAV-inc/website/hooks","issue_events_url":"https://api.github.com/repos/PPAV-inc/website/issues/events{/number}","events_url":"https://api.github.com/repos/PPAV-inc/website/events","assignees_url":"https://api.github.com/repos/PPAV-inc/website/assignees{/user}","branches_url":"https://api.github.com/repos/PPAV-inc/website/branches{/branch}","tags_url":"https://api.github.com/repos/PPAV-inc/website/tags","blobs_url":"https://api.github.com/repos/PPAV-inc/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PPAV-inc/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PPAV-inc/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/PPAV-inc/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PPAV-inc/website/statuses/{sha}","languages_url":"https://api.github.com/repos/PPAV-inc/website/languages","stargazers_url":"https://api.github.com/repos/PPAV-inc/website/stargazers","contributors_url":"https://api.github.com/repos/PPAV-inc/website/contributors","subscribers_url":"https://api.github.com/repos/PPAV-inc/website/subscribers","subscription_url":"https://api.github.com/repos/PPAV-inc/website/subscription","commits_url":"https://api.github.com/repos/PPAV-inc/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/PPAV-inc/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/PPAV-inc/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/PPAV-inc/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/PPAV-inc/website/contents/{+path}","compare_url":"https://api.github.com/repos/PPAV-inc/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PPAV-inc/website/merges","archive_url":"https://api.github.com/repos/PPAV-inc/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PPAV-inc/website/downloads","issues_url":"https://api.github.com/repos/PPAV-inc/website/issues{/number}","pulls_url":"https://api.github.com/repos/PPAV-inc/website/pulls{/number}","milestones_url":"https://api.github.com/repos/PPAV-inc/website/milestones{/number}","notifications_url":"https://api.github.com/repos/PPAV-inc/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PPAV-inc/website/labels{/name}","releases_url":"https://api.github.com/repos/PPAV-inc/website/releases{/id}","deployments_url":"https://api.github.com/repos/PPAV-inc/website/deployments","created_at":"2017-11-26T03:02:11Z","updated_at":"2017-11-27T10:10:47Z","pushed_at":"2017-12-05T15:26:38Z","git_url":"git://github.com/PPAV-inc/website.git","ssh_url":"git@github.com:PPAV-inc/website.git","clone_url":"https://github.com/PPAV-inc/website.git","svn_url":"https://github.com/PPAV-inc/website","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"PPAV-inc:master","ref":"master","sha":"9ed7f22753d1816e44979016f9c67862bc3e1c45","user":{"login":"PPAV-inc","id":29479947,"avatar_url":"https://avatars3.githubusercontent.com/u/29479947?v=4","gravatar_id":"","url":"https://api.github.com/users/PPAV-inc","html_url":"https://github.com/PPAV-inc","followers_url":"https://api.github.com/users/PPAV-inc/followers","following_url":"https://api.github.com/users/PPAV-inc/following{/other_user}","gists_url":"https://api.github.com/users/PPAV-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/PPAV-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PPAV-inc/subscriptions","organizations_url":"https://api.github.com/users/PPAV-inc/orgs","repos_url":"https://api.github.com/users/PPAV-inc/repos","events_url":"https://api.github.com/users/PPAV-inc/events{/privacy}","received_events_url":"https://api.github.com/users/PPAV-inc/received_events","type":"Organization","site_admin":false},"repo":{"id":112051631,"name":"website","full_name":"PPAV-inc/website","owner":{"login":"PPAV-inc","id":29479947,"avatar_url":"https://avatars3.githubusercontent.com/u/29479947?v=4","gravatar_id":"","url":"https://api.github.com/users/PPAV-inc","html_url":"https://github.com/PPAV-inc","followers_url":"https://api.github.com/users/PPAV-inc/followers","following_url":"https://api.github.com/users/PPAV-inc/following{/other_user}","gists_url":"https://api.github.com/users/PPAV-inc/gists{/gist_id}","starred_url":"https://api.github.com/users/PPAV-inc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PPAV-inc/subscriptions","organizations_url":"https://api.github.com/users/PPAV-inc/orgs","repos_url":"https://api.github.com/users/PPAV-inc/repos","events_url":"https://api.github.com/users/PPAV-inc/events{/privacy}","received_events_url":"https://api.github.com/users/PPAV-inc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PPAV-inc/website","description":null,"fork":false,"url":"https://api.github.com/repos/PPAV-inc/website","forks_url":"https://api.github.com/repos/PPAV-inc/website/forks","keys_url":"https://api.github.com/repos/PPAV-inc/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PPAV-inc/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PPAV-inc/website/teams","hooks_url":"https://api.github.com/repos/PPAV-inc/website/hooks","issue_events_url":"https://api.github.com/repos/PPAV-inc/website/issues/events{/number}","events_url":"https://api.github.com/repos/PPAV-inc/website/events","assignees_url":"https://api.github.com/repos/PPAV-inc/website/assignees{/user}","branches_url":"https://api.github.com/repos/PPAV-inc/website/branches{/branch}","tags_url":"https://api.github.com/repos/PPAV-inc/website/tags","blobs_url":"https://api.github.com/repos/PPAV-inc/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PPAV-inc/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PPAV-inc/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/PPAV-inc/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PPAV-inc/website/statuses/{sha}","languages_url":"https://api.github.com/repos/PPAV-inc/website/languages","stargazers_url":"https://api.github.com/repos/PPAV-inc/website/stargazers","contributors_url":"https://api.github.com/repos/PPAV-inc/website/contributors","subscribers_url":"https://api.github.com/repos/PPAV-inc/website/subscribers","subscription_url":"https://api.github.com/repos/PPAV-inc/website/subscription","commits_url":"https://api.github.com/repos/PPAV-inc/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/PPAV-inc/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/PPAV-inc/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/PPAV-inc/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/PPAV-inc/website/contents/{+path}","compare_url":"https://api.github.com/repos/PPAV-inc/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PPAV-inc/website/merges","archive_url":"https://api.github.com/repos/PPAV-inc/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PPAV-inc/website/downloads","issues_url":"https://api.github.com/repos/PPAV-inc/website/issues{/number}","pulls_url":"https://api.github.com/repos/PPAV-inc/website/pulls{/number}","milestones_url":"https://api.github.com/repos/PPAV-inc/website/milestones{/number}","notifications_url":"https://api.github.com/repos/PPAV-inc/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PPAV-inc/website/labels{/name}","releases_url":"https://api.github.com/repos/PPAV-inc/website/releases{/id}","deployments_url":"https://api.github.com/repos/PPAV-inc/website/deployments","created_at":"2017-11-26T03:02:11Z","updated_at":"2017-11-27T10:10:47Z","pushed_at":"2017-12-05T15:26:38Z","git_url":"git://github.com/PPAV-inc/website.git","ssh_url":"git@github.com:PPAV-inc/website.git","clone_url":"https://github.com/PPAV-inc/website.git","svn_url":"https://github.com/PPAV-inc/website","homepage":null,"size":225,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/5"},"html":{"href":"https://github.com/PPAV-inc/website/pull/5"},"issue":{"href":"https://api.github.com/repos/PPAV-inc/website/issues/5"},"comments":{"href":"https://api.github.com/repos/PPAV-inc/website/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PPAV-inc/website/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/PPAV-inc/website/statuses/6de02a0c783421c41a19be8694af2b6bb708e296"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"xxhomey19"}}