{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/graphql-python/gql/pulls/10","id":90461556,"html_url":"https://github.com/graphql-python/gql/pull/10","diff_url":"https://github.com/graphql-python/gql/pull/10.diff","patch_url":"https://github.com/graphql-python/gql/pull/10.patch","issue_url":"https://api.github.com/repos/graphql-python/gql/issues/10","number":10,"state":"open","locked":false,"title":"JSONfy variables if not string","user":{"login":"anibalsolon","id":562525,"avatar_url":"https://avatars.githubusercontent.com/u/562525?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsolon","html_url":"https://github.com/anibalsolon","followers_url":"https://api.github.com/users/anibalsolon/followers","following_url":"https://api.github.com/users/anibalsolon/following{/other_user}","gists_url":"https://api.github.com/users/anibalsolon/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsolon/subscriptions","organizations_url":"https://api.github.com/users/anibalsolon/orgs","repos_url":"https://api.github.com/users/anibalsolon/repos","events_url":"https://api.github.com/users/anibalsolon/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsolon/received_events","type":"User","site_admin":false},"body":"Gives the possibility to specify variables as a python dict.\r\n\r\nOne of the reasons to have variables in GraphQL is to avoid value injections like `{\"id\":\"%s\"} % (10)` directly on the query. So, to keep this feature, I've implemented this little PR.","created_at":"2016-10-22T00:03:04Z","updated_at":"2016-10-22T00:03:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b6363d5f5508239ec7fdb5ad65c608d130ce3bd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/graphql-python/gql/pulls/10/commits","review_comments_url":"https://api.github.com/repos/graphql-python/gql/pulls/10/comments","review_comment_url":"https://api.github.com/repos/graphql-python/gql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphql-python/gql/issues/10/comments","statuses_url":"https://api.github.com/repos/graphql-python/gql/statuses/c7b1d23424ca6a35c8a7712d612fcd0a5f44f6ce","head":{"label":"anibalsolon:feature/accept_json_variables","ref":"feature/accept_json_variables","sha":"c7b1d23424ca6a35c8a7712d612fcd0a5f44f6ce","user":{"login":"anibalsolon","id":562525,"avatar_url":"https://avatars.githubusercontent.com/u/562525?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsolon","html_url":"https://github.com/anibalsolon","followers_url":"https://api.github.com/users/anibalsolon/followers","following_url":"https://api.github.com/users/anibalsolon/following{/other_user}","gists_url":"https://api.github.com/users/anibalsolon/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsolon/subscriptions","organizations_url":"https://api.github.com/users/anibalsolon/orgs","repos_url":"https://api.github.com/users/anibalsolon/repos","events_url":"https://api.github.com/users/anibalsolon/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsolon/received_events","type":"User","site_admin":false},"repo":{"id":71593754,"name":"gql","full_name":"anibalsolon/gql","owner":{"login":"anibalsolon","id":562525,"avatar_url":"https://avatars.githubusercontent.com/u/562525?v=3","gravatar_id":"","url":"https://api.github.com/users/anibalsolon","html_url":"https://github.com/anibalsolon","followers_url":"https://api.github.com/users/anibalsolon/followers","following_url":"https://api.github.com/users/anibalsolon/following{/other_user}","gists_url":"https://api.github.com/users/anibalsolon/gists{/gist_id}","starred_url":"https://api.github.com/users/anibalsolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anibalsolon/subscriptions","organizations_url":"https://api.github.com/users/anibalsolon/orgs","repos_url":"https://api.github.com/users/anibalsolon/repos","events_url":"https://api.github.com/users/anibalsolon/events{/privacy}","received_events_url":"https://api.github.com/users/anibalsolon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anibalsolon/gql","description":"A GraphQL client in Python","fork":true,"url":"https://api.github.com/repos/anibalsolon/gql","forks_url":"https://api.github.com/repos/anibalsolon/gql/forks","keys_url":"https://api.github.com/repos/anibalsolon/gql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anibalsolon/gql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anibalsolon/gql/teams","hooks_url":"https://api.github.com/repos/anibalsolon/gql/hooks","issue_events_url":"https://api.github.com/repos/anibalsolon/gql/issues/events{/number}","events_url":"https://api.github.com/repos/anibalsolon/gql/events","assignees_url":"https://api.github.com/repos/anibalsolon/gql/assignees{/user}","branches_url":"https://api.github.com/repos/anibalsolon/gql/branches{/branch}","tags_url":"https://api.github.com/repos/anibalsolon/gql/tags","blobs_url":"https://api.github.com/repos/anibalsolon/gql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anibalsolon/gql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anibalsolon/gql/git/refs{/sha}","trees_url":"https://api.github.com/repos/anibalsolon/gql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anibalsolon/gql/statuses/{sha}","languages_url":"https://api.github.com/repos/anibalsolon/gql/languages","stargazers_url":"https://api.github.com/repos/anibalsolon/gql/stargazers","contributors_url":"https://api.github.com/repos/anibalsolon/gql/contributors","subscribers_url":"https://api.github.com/repos/anibalsolon/gql/subscribers","subscription_url":"https://api.github.com/repos/anibalsolon/gql/subscription","commits_url":"https://api.github.com/repos/anibalsolon/gql/commits{/sha}","git_commits_url":"https://api.github.com/repos/anibalsolon/gql/git/commits{/sha}","comments_url":"https://api.github.com/repos/anibalsolon/gql/comments{/number}","issue_comment_url":"https://api.github.com/repos/anibalsolon/gql/issues/comments{/number}","contents_url":"https://api.github.com/repos/anibalsolon/gql/contents/{+path}","compare_url":"https://api.github.com/repos/anibalsolon/gql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anibalsolon/gql/merges","archive_url":"https://api.github.com/repos/anibalsolon/gql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anibalsolon/gql/downloads","issues_url":"https://api.github.com/repos/anibalsolon/gql/issues{/number}","pulls_url":"https://api.github.com/repos/anibalsolon/gql/pulls{/number}","milestones_url":"https://api.github.com/repos/anibalsolon/gql/milestones{/number}","notifications_url":"https://api.github.com/repos/anibalsolon/gql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anibalsolon/gql/labels{/name}","releases_url":"https://api.github.com/repos/anibalsolon/gql/releases{/id}","deployments_url":"https://api.github.com/repos/anibalsolon/gql/deployments","created_at":"2016-10-21T20:20:34Z","updated_at":"2016-10-21T20:20:35Z","pushed_at":"2016-10-21T23:58:09Z","git_url":"git://github.com/anibalsolon/gql.git","ssh_url":"git@github.com:anibalsolon/gql.git","clone_url":"https://github.com/anibalsolon/gql.git","svn_url":"https://github.com/anibalsolon/gql","homepage":null,"size":45,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"graphql-python:master","ref":"master","sha":"a2a7f6615b746f96cd2bc27bcc7c8906e750f222","user":{"login":"graphql-python","id":15002022,"avatar_url":"https://avatars.githubusercontent.com/u/15002022?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql-python","html_url":"https://github.com/graphql-python","followers_url":"https://api.github.com/users/graphql-python/followers","following_url":"https://api.github.com/users/graphql-python/following{/other_user}","gists_url":"https://api.github.com/users/graphql-python/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql-python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql-python/subscriptions","organizations_url":"https://api.github.com/users/graphql-python/orgs","repos_url":"https://api.github.com/users/graphql-python/repos","events_url":"https://api.github.com/users/graphql-python/events{/privacy}","received_events_url":"https://api.github.com/users/graphql-python/received_events","type":"Organization","site_admin":false},"repo":{"id":62077169,"name":"gql","full_name":"graphql-python/gql","owner":{"login":"graphql-python","id":15002022,"avatar_url":"https://avatars.githubusercontent.com/u/15002022?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql-python","html_url":"https://github.com/graphql-python","followers_url":"https://api.github.com/users/graphql-python/followers","following_url":"https://api.github.com/users/graphql-python/following{/other_user}","gists_url":"https://api.github.com/users/graphql-python/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql-python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql-python/subscriptions","organizations_url":"https://api.github.com/users/graphql-python/orgs","repos_url":"https://api.github.com/users/graphql-python/repos","events_url":"https://api.github.com/users/graphql-python/events{/privacy}","received_events_url":"https://api.github.com/users/graphql-python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphql-python/gql","description":"A GraphQL client in Python","fork":false,"url":"https://api.github.com/repos/graphql-python/gql","forks_url":"https://api.github.com/repos/graphql-python/gql/forks","keys_url":"https://api.github.com/repos/graphql-python/gql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphql-python/gql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphql-python/gql/teams","hooks_url":"https://api.github.com/repos/graphql-python/gql/hooks","issue_events_url":"https://api.github.com/repos/graphql-python/gql/issues/events{/number}","events_url":"https://api.github.com/repos/graphql-python/gql/events","assignees_url":"https://api.github.com/repos/graphql-python/gql/assignees{/user}","branches_url":"https://api.github.com/repos/graphql-python/gql/branches{/branch}","tags_url":"https://api.github.com/repos/graphql-python/gql/tags","blobs_url":"https://api.github.com/repos/graphql-python/gql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphql-python/gql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphql-python/gql/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphql-python/gql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphql-python/gql/statuses/{sha}","languages_url":"https://api.github.com/repos/graphql-python/gql/languages","stargazers_url":"https://api.github.com/repos/graphql-python/gql/stargazers","contributors_url":"https://api.github.com/repos/graphql-python/gql/contributors","subscribers_url":"https://api.github.com/repos/graphql-python/gql/subscribers","subscription_url":"https://api.github.com/repos/graphql-python/gql/subscription","commits_url":"https://api.github.com/repos/graphql-python/gql/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphql-python/gql/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphql-python/gql/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphql-python/gql/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphql-python/gql/contents/{+path}","compare_url":"https://api.github.com/repos/graphql-python/gql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphql-python/gql/merges","archive_url":"https://api.github.com/repos/graphql-python/gql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphql-python/gql/downloads","issues_url":"https://api.github.com/repos/graphql-python/gql/issues{/number}","pulls_url":"https://api.github.com/repos/graphql-python/gql/pulls{/number}","milestones_url":"https://api.github.com/repos/graphql-python/gql/milestones{/number}","notifications_url":"https://api.github.com/repos/graphql-python/gql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphql-python/gql/labels{/name}","releases_url":"https://api.github.com/repos/graphql-python/gql/releases{/id}","deployments_url":"https://api.github.com/repos/graphql-python/gql/deployments","created_at":"2016-06-27T18:08:42Z","updated_at":"2016-09-26T14:24:52Z","pushed_at":"2016-10-22T00:03:04Z","git_url":"git://github.com/graphql-python/gql.git","ssh_url":"git@github.com:graphql-python/gql.git","clone_url":"https://github.com/graphql-python/gql.git","svn_url":"https://github.com/graphql-python/gql","homepage":null,"size":45,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphql-python/gql/pulls/10"},"html":{"href":"https://github.com/graphql-python/gql/pull/10"},"issue":{"href":"https://api.github.com/repos/graphql-python/gql/issues/10"},"comments":{"href":"https://api.github.com/repos/graphql-python/gql/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/graphql-python/gql/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/graphql-python/gql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphql-python/gql/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/graphql-python/gql/statuses/c7b1d23424ca6a35c8a7712d612fcd0a5f44f6ce"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":63,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"anibalsolon"}}