{"action":"closed","number":108,"pull_request":{"url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108","id":187501608,"html_url":"https://github.com/Silverhill/coupon-backend/pull/108","diff_url":"https://github.com/Silverhill/coupon-backend/pull/108.diff","patch_url":"https://github.com/Silverhill/coupon-backend/pull/108.patch","issue_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/108","number":108,"state":"closed","locked":false,"title":"Add query for Public Campaigns","user":{"login":"JhymerMartinez","id":3520164,"avatar_url":"https://avatars1.githubusercontent.com/u/3520164?v=4","gravatar_id":"","url":"https://api.github.com/users/JhymerMartinez","html_url":"https://github.com/JhymerMartinez","followers_url":"https://api.github.com/users/JhymerMartinez/followers","following_url":"https://api.github.com/users/JhymerMartinez/following{/other_user}","gists_url":"https://api.github.com/users/JhymerMartinez/gists{/gist_id}","starred_url":"https://api.github.com/users/JhymerMartinez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JhymerMartinez/subscriptions","organizations_url":"https://api.github.com/users/JhymerMartinez/orgs","repos_url":"https://api.github.com/users/JhymerMartinez/repos","events_url":"https://api.github.com/users/JhymerMartinez/events{/privacy}","received_events_url":"https://api.github.com/users/JhymerMartinez/received_events","type":"User","site_admin":false},"body":"query example:\r\n```\r\n{\r\n  publicCampaigns(limit: 10, skip: 0, sortField: \"createdAt\", sortDirection: 1) {\r\n    totalCount\r\n    campaigns {\r\n      id\r\n      startAt\r\n      endAt\r\n      country\r\n      city\r\n      image\r\n      totalCoupons\r\n      huntedCoupons\r\n      redeemedCoupons\r\n      status\r\n      title\r\n      description\r\n      customMessage\r\n      deleted\r\n      initialAgeRange\r\n      finalAgeRange\r\n      remaingCoupons\r\n      createdAt\r\n      office {\r\n        id\r\n        economicActivity\r\n        contributorType\r\n        legalRepresentative\r\n        name\r\n        officePhone\r\n        cellPhone\r\n        address\r\n        email\r\n        company {\r\n          id\r\n          businessName\r\n          logo\r\n          slogan\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\n```\r\n\r\n\r\ncon postman:\r\n![image](https://user-images.githubusercontent.com/3520164/39933446-a402a102-5508-11e8-8896-7b51e0e83117.png)\r\n\r\n\r\n```\r\n{\r\n\t\"query\":\"{\\n  publicCampaigns(limit: 10, skip: 0, sortField: \\\"createdAt\\\", sortDirection: 1) {\\n    totalCount\\n    campaigns {\\n      id\\n      startAt\\n      endAt\\n      country\\n      city\\n      image\\n      totalCoupons\\n      huntedCoupons\\n      redeemedCoupons\\n      status\\n      title\\n      description\\n      customMessage\\n      deleted\\n      initialAgeRange\\n      finalAgeRange\\n      remaingCoupons\\n      createdAt\\n      office {\\n        id\\n        economicActivity\\n        contributorType\\n        legalRepresentative\\n        name\\n        officePhone\\n        cellPhone\\n        address\\n        email\\n        company {\\n          id\\n          businessName\\n          logo\\n          slogan\\n        }\\n      }\\n    }\\n  }\\n}\\n\"\r\n}\r\n```","created_at":"2018-05-11T15:47:52Z","updated_at":"2018-05-12T16:58:24Z","closed_at":"2018-05-12T16:58:24Z","merged_at":"2018-05-12T16:58:24Z","merge_commit_sha":"e903f24372e3612d66cd7239f568579cddaefb0f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"fabricioflores","id":3495122,"avatar_url":"https://avatars0.githubusercontent.com/u/3495122?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricioflores","html_url":"https://github.com/fabricioflores","followers_url":"https://api.github.com/users/fabricioflores/followers","following_url":"https://api.github.com/users/fabricioflores/following{/other_user}","gists_url":"https://api.github.com/users/fabricioflores/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricioflores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricioflores/subscriptions","organizations_url":"https://api.github.com/users/fabricioflores/orgs","repos_url":"https://api.github.com/users/fabricioflores/repos","events_url":"https://api.github.com/users/fabricioflores/events{/privacy}","received_events_url":"https://api.github.com/users/fabricioflores/received_events","type":"User","site_admin":false},{"login":"mvinan","id":10097926,"avatar_url":"https://avatars1.githubusercontent.com/u/10097926?v=4","gravatar_id":"","url":"https://api.github.com/users/mvinan","html_url":"https://github.com/mvinan","followers_url":"https://api.github.com/users/mvinan/followers","following_url":"https://api.github.com/users/mvinan/following{/other_user}","gists_url":"https://api.github.com/users/mvinan/gists{/gist_id}","starred_url":"https://api.github.com/users/mvinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvinan/subscriptions","organizations_url":"https://api.github.com/users/mvinan/orgs","repos_url":"https://api.github.com/users/mvinan/repos","events_url":"https://api.github.com/users/mvinan/events{/privacy}","received_events_url":"https://api.github.com/users/mvinan/received_events","type":"User","site_admin":false},{"login":"hidalluis","id":12450388,"avatar_url":"https://avatars2.githubusercontent.com/u/12450388?v=4","gravatar_id":"","url":"https://api.github.com/users/hidalluis","html_url":"https://github.com/hidalluis","followers_url":"https://api.github.com/users/hidalluis/followers","following_url":"https://api.github.com/users/hidalluis/following{/other_user}","gists_url":"https://api.github.com/users/hidalluis/gists{/gist_id}","starred_url":"https://api.github.com/users/hidalluis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hidalluis/subscriptions","organizations_url":"https://api.github.com/users/hidalluis/orgs","repos_url":"https://api.github.com/users/hidalluis/repos","events_url":"https://api.github.com/users/hidalluis/events{/privacy}","received_events_url":"https://api.github.com/users/hidalluis/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108/commits","review_comments_url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108/comments","review_comment_url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/108/comments","statuses_url":"https://api.github.com/repos/Silverhill/coupon-backend/statuses/c93c3b99bc67a6cc51e21e1be98a5eb63ded6c3f","head":{"label":"Silverhill:public_campaigns","ref":"public_campaigns","sha":"c93c3b99bc67a6cc51e21e1be98a5eb63ded6c3f","user":{"login":"Silverhill","id":34378586,"avatar_url":"https://avatars3.githubusercontent.com/u/34378586?v=4","gravatar_id":"","url":"https://api.github.com/users/Silverhill","html_url":"https://github.com/Silverhill","followers_url":"https://api.github.com/users/Silverhill/followers","following_url":"https://api.github.com/users/Silverhill/following{/other_user}","gists_url":"https://api.github.com/users/Silverhill/gists{/gist_id}","starred_url":"https://api.github.com/users/Silverhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silverhill/subscriptions","organizations_url":"https://api.github.com/users/Silverhill/orgs","repos_url":"https://api.github.com/users/Silverhill/repos","events_url":"https://api.github.com/users/Silverhill/events{/privacy}","received_events_url":"https://api.github.com/users/Silverhill/received_events","type":"Organization","site_admin":false},"repo":{"id":117697360,"name":"coupon-backend","full_name":"Silverhill/coupon-backend","owner":{"login":"Silverhill","id":34378586,"avatar_url":"https://avatars3.githubusercontent.com/u/34378586?v=4","gravatar_id":"","url":"https://api.github.com/users/Silverhill","html_url":"https://github.com/Silverhill","followers_url":"https://api.github.com/users/Silverhill/followers","following_url":"https://api.github.com/users/Silverhill/following{/other_user}","gists_url":"https://api.github.com/users/Silverhill/gists{/gist_id}","starred_url":"https://api.github.com/users/Silverhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silverhill/subscriptions","organizations_url":"https://api.github.com/users/Silverhill/orgs","repos_url":"https://api.github.com/users/Silverhill/repos","events_url":"https://api.github.com/users/Silverhill/events{/privacy}","received_events_url":"https://api.github.com/users/Silverhill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Silverhill/coupon-backend","description":null,"fork":false,"url":"https://api.github.com/repos/Silverhill/coupon-backend","forks_url":"https://api.github.com/repos/Silverhill/coupon-backend/forks","keys_url":"https://api.github.com/repos/Silverhill/coupon-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Silverhill/coupon-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Silverhill/coupon-backend/teams","hooks_url":"https://api.github.com/repos/Silverhill/coupon-backend/hooks","issue_events_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/events{/number}","events_url":"https://api.github.com/repos/Silverhill/coupon-backend/events","assignees_url":"https://api.github.com/repos/Silverhill/coupon-backend/assignees{/user}","branches_url":"https://api.github.com/repos/Silverhill/coupon-backend/branches{/branch}","tags_url":"https://api.github.com/repos/Silverhill/coupon-backend/tags","blobs_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Silverhill/coupon-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/Silverhill/coupon-backend/languages","stargazers_url":"https://api.github.com/repos/Silverhill/coupon-backend/stargazers","contributors_url":"https://api.github.com/repos/Silverhill/coupon-backend/contributors","subscribers_url":"https://api.github.com/repos/Silverhill/coupon-backend/subscribers","subscription_url":"https://api.github.com/repos/Silverhill/coupon-backend/subscription","commits_url":"https://api.github.com/repos/Silverhill/coupon-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Silverhill/coupon-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Silverhill/coupon-backend/contents/{+path}","compare_url":"https://api.github.com/repos/Silverhill/coupon-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Silverhill/coupon-backend/merges","archive_url":"https://api.github.com/repos/Silverhill/coupon-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Silverhill/coupon-backend/downloads","issues_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues{/number}","pulls_url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/Silverhill/coupon-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/Silverhill/coupon-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Silverhill/coupon-backend/labels{/name}","releases_url":"https://api.github.com/repos/Silverhill/coupon-backend/releases{/id}","deployments_url":"https://api.github.com/repos/Silverhill/coupon-backend/deployments","created_at":"2018-01-16T14:54:48Z","updated_at":"2018-05-10T15:34:56Z","pushed_at":"2018-05-12T16:58:24Z","git_url":"git://github.com/Silverhill/coupon-backend.git","ssh_url":"git@github.com:Silverhill/coupon-backend.git","clone_url":"https://github.com/Silverhill/coupon-backend.git","svn_url":"https://github.com/Silverhill/coupon-backend","homepage":null,"size":456,"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":13,"license":null,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"base":{"label":"Silverhill:master","ref":"master","sha":"3f6812566ca7ee391d05ea25beede064c3f2b068","user":{"login":"Silverhill","id":34378586,"avatar_url":"https://avatars3.githubusercontent.com/u/34378586?v=4","gravatar_id":"","url":"https://api.github.com/users/Silverhill","html_url":"https://github.com/Silverhill","followers_url":"https://api.github.com/users/Silverhill/followers","following_url":"https://api.github.com/users/Silverhill/following{/other_user}","gists_url":"https://api.github.com/users/Silverhill/gists{/gist_id}","starred_url":"https://api.github.com/users/Silverhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silverhill/subscriptions","organizations_url":"https://api.github.com/users/Silverhill/orgs","repos_url":"https://api.github.com/users/Silverhill/repos","events_url":"https://api.github.com/users/Silverhill/events{/privacy}","received_events_url":"https://api.github.com/users/Silverhill/received_events","type":"Organization","site_admin":false},"repo":{"id":117697360,"name":"coupon-backend","full_name":"Silverhill/coupon-backend","owner":{"login":"Silverhill","id":34378586,"avatar_url":"https://avatars3.githubusercontent.com/u/34378586?v=4","gravatar_id":"","url":"https://api.github.com/users/Silverhill","html_url":"https://github.com/Silverhill","followers_url":"https://api.github.com/users/Silverhill/followers","following_url":"https://api.github.com/users/Silverhill/following{/other_user}","gists_url":"https://api.github.com/users/Silverhill/gists{/gist_id}","starred_url":"https://api.github.com/users/Silverhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Silverhill/subscriptions","organizations_url":"https://api.github.com/users/Silverhill/orgs","repos_url":"https://api.github.com/users/Silverhill/repos","events_url":"https://api.github.com/users/Silverhill/events{/privacy}","received_events_url":"https://api.github.com/users/Silverhill/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Silverhill/coupon-backend","description":null,"fork":false,"url":"https://api.github.com/repos/Silverhill/coupon-backend","forks_url":"https://api.github.com/repos/Silverhill/coupon-backend/forks","keys_url":"https://api.github.com/repos/Silverhill/coupon-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Silverhill/coupon-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Silverhill/coupon-backend/teams","hooks_url":"https://api.github.com/repos/Silverhill/coupon-backend/hooks","issue_events_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/events{/number}","events_url":"https://api.github.com/repos/Silverhill/coupon-backend/events","assignees_url":"https://api.github.com/repos/Silverhill/coupon-backend/assignees{/user}","branches_url":"https://api.github.com/repos/Silverhill/coupon-backend/branches{/branch}","tags_url":"https://api.github.com/repos/Silverhill/coupon-backend/tags","blobs_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Silverhill/coupon-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/Silverhill/coupon-backend/languages","stargazers_url":"https://api.github.com/repos/Silverhill/coupon-backend/stargazers","contributors_url":"https://api.github.com/repos/Silverhill/coupon-backend/contributors","subscribers_url":"https://api.github.com/repos/Silverhill/coupon-backend/subscribers","subscription_url":"https://api.github.com/repos/Silverhill/coupon-backend/subscription","commits_url":"https://api.github.com/repos/Silverhill/coupon-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Silverhill/coupon-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Silverhill/coupon-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Silverhill/coupon-backend/contents/{+path}","compare_url":"https://api.github.com/repos/Silverhill/coupon-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Silverhill/coupon-backend/merges","archive_url":"https://api.github.com/repos/Silverhill/coupon-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Silverhill/coupon-backend/downloads","issues_url":"https://api.github.com/repos/Silverhill/coupon-backend/issues{/number}","pulls_url":"https://api.github.com/repos/Silverhill/coupon-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/Silverhill/coupon-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/Silverhill/coupon-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Silverhill/coupon-backend/labels{/name}","releases_url":"https://api.github.com/repos/Silverhill/coupon-backend/releases{/id}","deployments_url":"https://api.github.com/repos/Silverhill/coupon-backend/deployments","created_at":"2018-01-16T14:54:48Z","updated_at":"2018-05-10T15:34:56Z","pushed_at":"2018-05-12T16:58:24Z","git_url":"git://github.com/Silverhill/coupon-backend.git","ssh_url":"git@github.com:Silverhill/coupon-backend.git","clone_url":"https://github.com/Silverhill/coupon-backend.git","svn_url":"https://github.com/Silverhill/coupon-backend","homepage":null,"size":456,"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":13,"license":null,"forks":0,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108"},"html":{"href":"https://github.com/Silverhill/coupon-backend/pull/108"},"issue":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/issues/108"},"comments":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/Silverhill/coupon-backend/statuses/c93c3b99bc67a6cc51e21e1be98a5eb63ded6c3f"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"fabricioflores","id":3495122,"avatar_url":"https://avatars0.githubusercontent.com/u/3495122?v=4","gravatar_id":"","url":"https://api.github.com/users/fabricioflores","html_url":"https://github.com/fabricioflores","followers_url":"https://api.github.com/users/fabricioflores/followers","following_url":"https://api.github.com/users/fabricioflores/following{/other_user}","gists_url":"https://api.github.com/users/fabricioflores/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricioflores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricioflores/subscriptions","organizations_url":"https://api.github.com/users/fabricioflores/orgs","repos_url":"https://api.github.com/users/fabricioflores/repos","events_url":"https://api.github.com/users/fabricioflores/events{/privacy}","received_events_url":"https://api.github.com/users/fabricioflores/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":182,"deletions":0,"changed_files":7}}
{"actor":{"display_login":"fabricioflores"}}