{"action":"created","comment":{"url":"https://api.github.com/repos/kiwicom/margarita/pulls/comments/240729671","pull_request_review_id":183826846,"id":240729671,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDcyOTY3MQ==","diff_hunk":"@@ -0,0 +1,41 @@\n+// @flow\n+\n+import { GraphQLString, GraphQLNonNull } from 'graphql';\n+import { type ConnectionArguments } from 'graphql-relay';\n+import {\n+  connectionFromArray,\n+  connectionArgs,\n+  connectionDefinitions,\n+} from '@kiwicom/graphql-utils';\n+\n+import type { GraphqlContextType } from '../services/GraphQLContext';\n+import GraphQLocation from '../types/output/Location';\n+\n+const { connectionType: LocationsConnection } = connectionDefinitions({\n+  nodeType: GraphQLocation,\n+});\n+\n+type Args = {|\n+  +term: string,\n+  ...$Exact<ConnectionArguments>,\n+|};\n+\n+export default {\n+  name: 'Locations',\n+  type: LocationsConnection,\n+  description: 'Query for suggested location based on incomplete names',\n+  args: {\n+    term: {\n+      type: GraphQLNonNull(GraphQLString),\n+    },\n+    ...connectionArgs,\n+  },\n+  resolve: async (_: mixed, args: Args, { dataLoader }: GraphqlContextType) => {\n+    const { term } = args;\n+    const locations = await dataLoader.locations.load({\n+      term,\n+    });\n+\n+    return connectionFromArray<any>(locations, args);","path":"packages/graphql/src/queries/Locations.js","position":39,"original_position":39,"commit_id":"9ccaafc0b0eb93a47c85f362c2549cfae7045758","original_commit_id":"9ccaafc0b0eb93a47c85f362c2549cfae7045758","user":{"login":"FilipMessa","id":6354326,"node_id":"MDQ6VXNlcjYzNTQzMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/6354326?v=4","gravatar_id":"","url":"https://api.github.com/users/FilipMessa","html_url":"https://github.com/FilipMessa","followers_url":"https://api.github.com/users/FilipMessa/followers","following_url":"https://api.github.com/users/FilipMessa/following{/other_user}","gists_url":"https://api.github.com/users/FilipMessa/gists{/gist_id}","starred_url":"https://api.github.com/users/FilipMessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FilipMessa/subscriptions","organizations_url":"https://api.github.com/users/FilipMessa/orgs","repos_url":"https://api.github.com/users/FilipMessa/repos","events_url":"https://api.github.com/users/FilipMessa/events{/privacy}","received_events_url":"https://api.github.com/users/FilipMessa/received_events","type":"User","site_admin":false},"body":"I forgot to change that","created_at":"2018-12-11T18:10:59Z","updated_at":"2018-12-11T18:10:59Z","html_url":"https://github.com/kiwicom/margarita/pull/52#discussion_r240729671","pull_request_url":"https://api.github.com/repos/kiwicom/margarita/pulls/52","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/comments/240729671"},"html":{"href":"https://github.com/kiwicom/margarita/pull/52#discussion_r240729671"},"pull_request":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/52"}},"in_reply_to_id":240712162},"pull_request":{"url":"https://api.github.com/repos/kiwicom/margarita/pulls/52","id":237733396,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NzMzMzk2","html_url":"https://github.com/kiwicom/margarita/pull/52","diff_url":"https://github.com/kiwicom/margarita/pull/52.diff","patch_url":"https://github.com/kiwicom/margarita/pull/52.patch","issue_url":"https://api.github.com/repos/kiwicom/margarita/issues/52","number":52,"state":"open","locked":false,"title":"WIP: Graphql: add locationsByTerm query","user":{"login":"FilipMessa","id":6354326,"node_id":"MDQ6VXNlcjYzNTQzMjY=","avatar_url":"https://avatars0.githubusercontent.com/u/6354326?v=4","gravatar_id":"","url":"https://api.github.com/users/FilipMessa","html_url":"https://github.com/FilipMessa","followers_url":"https://api.github.com/users/FilipMessa/followers","following_url":"https://api.github.com/users/FilipMessa/following{/other_user}","gists_url":"https://api.github.com/users/FilipMessa/gists{/gist_id}","starred_url":"https://api.github.com/users/FilipMessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FilipMessa/subscriptions","organizations_url":"https://api.github.com/users/FilipMessa/orgs","repos_url":"https://api.github.com/users/FilipMessa/repos","events_url":"https://api.github.com/users/FilipMessa/events{/privacy}","received_events_url":"https://api.github.com/users/FilipMessa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-11T15:59:13Z","updated_at":"2018-12-11T18:10:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5b9d3e89de85e7d1d6d1984544d8541ea58fab6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiwicom/margarita/pulls/52/commits","review_comments_url":"https://api.github.com/repos/kiwicom/margarita/pulls/52/comments","review_comment_url":"https://api.github.com/repos/kiwicom/margarita/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiwicom/margarita/issues/52/comments","statuses_url":"https://api.github.com/repos/kiwicom/margarita/statuses/9ccaafc0b0eb93a47c85f362c2549cfae7045758","head":{"label":"kiwicom:location-query","ref":"location-query","sha":"9ccaafc0b0eb93a47c85f362c2549cfae7045758","user":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"repo":{"id":159488635,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk0ODg2MzU=","name":"margarita","full_name":"kiwicom/margarita","private":false,"owner":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kiwicom/margarita","description":"Mobile and Web application implementing Kiwi.com Tequila API ","fork":false,"url":"https://api.github.com/repos/kiwicom/margarita","forks_url":"https://api.github.com/repos/kiwicom/margarita/forks","keys_url":"https://api.github.com/repos/kiwicom/margarita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiwicom/margarita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiwicom/margarita/teams","hooks_url":"https://api.github.com/repos/kiwicom/margarita/hooks","issue_events_url":"https://api.github.com/repos/kiwicom/margarita/issues/events{/number}","events_url":"https://api.github.com/repos/kiwicom/margarita/events","assignees_url":"https://api.github.com/repos/kiwicom/margarita/assignees{/user}","branches_url":"https://api.github.com/repos/kiwicom/margarita/branches{/branch}","tags_url":"https://api.github.com/repos/kiwicom/margarita/tags","blobs_url":"https://api.github.com/repos/kiwicom/margarita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiwicom/margarita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiwicom/margarita/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiwicom/margarita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiwicom/margarita/statuses/{sha}","languages_url":"https://api.github.com/repos/kiwicom/margarita/languages","stargazers_url":"https://api.github.com/repos/kiwicom/margarita/stargazers","contributors_url":"https://api.github.com/repos/kiwicom/margarita/contributors","subscribers_url":"https://api.github.com/repos/kiwicom/margarita/subscribers","subscription_url":"https://api.github.com/repos/kiwicom/margarita/subscription","commits_url":"https://api.github.com/repos/kiwicom/margarita/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiwicom/margarita/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiwicom/margarita/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiwicom/margarita/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiwicom/margarita/contents/{+path}","compare_url":"https://api.github.com/repos/kiwicom/margarita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiwicom/margarita/merges","archive_url":"https://api.github.com/repos/kiwicom/margarita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiwicom/margarita/downloads","issues_url":"https://api.github.com/repos/kiwicom/margarita/issues{/number}","pulls_url":"https://api.github.com/repos/kiwicom/margarita/pulls{/number}","milestones_url":"https://api.github.com/repos/kiwicom/margarita/milestones{/number}","notifications_url":"https://api.github.com/repos/kiwicom/margarita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiwicom/margarita/labels{/name}","releases_url":"https://api.github.com/repos/kiwicom/margarita/releases{/id}","deployments_url":"https://api.github.com/repos/kiwicom/margarita/deployments","created_at":"2018-11-28T11:04:52Z","updated_at":"2018-12-11T10:38:39Z","pushed_at":"2018-12-11T15:59:14Z","git_url":"git://github.com/kiwicom/margarita.git","ssh_url":"git@github.com:kiwicom/margarita.git","clone_url":"https://github.com/kiwicom/margarita.git","svn_url":"https://github.com/kiwicom/margarita","homepage":"","size":514,"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":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"kiwicom:master","ref":"master","sha":"8e5edc921c45dc6d945213e65a965ddcdf52cf8e","user":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"repo":{"id":159488635,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk0ODg2MzU=","name":"margarita","full_name":"kiwicom/margarita","private":false,"owner":{"login":"kiwicom","id":25227300,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MjI3MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/25227300?v=4","gravatar_id":"","url":"https://api.github.com/users/kiwicom","html_url":"https://github.com/kiwicom","followers_url":"https://api.github.com/users/kiwicom/followers","following_url":"https://api.github.com/users/kiwicom/following{/other_user}","gists_url":"https://api.github.com/users/kiwicom/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwicom/subscriptions","organizations_url":"https://api.github.com/users/kiwicom/orgs","repos_url":"https://api.github.com/users/kiwicom/repos","events_url":"https://api.github.com/users/kiwicom/events{/privacy}","received_events_url":"https://api.github.com/users/kiwicom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kiwicom/margarita","description":"Mobile and Web application implementing Kiwi.com Tequila API ","fork":false,"url":"https://api.github.com/repos/kiwicom/margarita","forks_url":"https://api.github.com/repos/kiwicom/margarita/forks","keys_url":"https://api.github.com/repos/kiwicom/margarita/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiwicom/margarita/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiwicom/margarita/teams","hooks_url":"https://api.github.com/repos/kiwicom/margarita/hooks","issue_events_url":"https://api.github.com/repos/kiwicom/margarita/issues/events{/number}","events_url":"https://api.github.com/repos/kiwicom/margarita/events","assignees_url":"https://api.github.com/repos/kiwicom/margarita/assignees{/user}","branches_url":"https://api.github.com/repos/kiwicom/margarita/branches{/branch}","tags_url":"https://api.github.com/repos/kiwicom/margarita/tags","blobs_url":"https://api.github.com/repos/kiwicom/margarita/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiwicom/margarita/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiwicom/margarita/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiwicom/margarita/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiwicom/margarita/statuses/{sha}","languages_url":"https://api.github.com/repos/kiwicom/margarita/languages","stargazers_url":"https://api.github.com/repos/kiwicom/margarita/stargazers","contributors_url":"https://api.github.com/repos/kiwicom/margarita/contributors","subscribers_url":"https://api.github.com/repos/kiwicom/margarita/subscribers","subscription_url":"https://api.github.com/repos/kiwicom/margarita/subscription","commits_url":"https://api.github.com/repos/kiwicom/margarita/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiwicom/margarita/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiwicom/margarita/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiwicom/margarita/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiwicom/margarita/contents/{+path}","compare_url":"https://api.github.com/repos/kiwicom/margarita/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiwicom/margarita/merges","archive_url":"https://api.github.com/repos/kiwicom/margarita/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiwicom/margarita/downloads","issues_url":"https://api.github.com/repos/kiwicom/margarita/issues{/number}","pulls_url":"https://api.github.com/repos/kiwicom/margarita/pulls{/number}","milestones_url":"https://api.github.com/repos/kiwicom/margarita/milestones{/number}","notifications_url":"https://api.github.com/repos/kiwicom/margarita/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiwicom/margarita/labels{/name}","releases_url":"https://api.github.com/repos/kiwicom/margarita/releases{/id}","deployments_url":"https://api.github.com/repos/kiwicom/margarita/deployments","created_at":"2018-11-28T11:04:52Z","updated_at":"2018-12-11T10:38:39Z","pushed_at":"2018-12-11T15:59:14Z","git_url":"git://github.com/kiwicom/margarita.git","ssh_url":"git@github.com:kiwicom/margarita.git","clone_url":"https://github.com/kiwicom/margarita.git","svn_url":"https://github.com/kiwicom/margarita","homepage":"","size":514,"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":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/52"},"html":{"href":"https://github.com/kiwicom/margarita/pull/52"},"issue":{"href":"https://api.github.com/repos/kiwicom/margarita/issues/52"},"comments":{"href":"https://api.github.com/repos/kiwicom/margarita/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiwicom/margarita/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/kiwicom/margarita/statuses/9ccaafc0b0eb93a47c85f362c2549cfae7045758"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"FilipMessa"}}