{"action":"created","issue":{"url":"https://api.github.com/repos/lucasbento/create-graphql/issues/59","repository_url":"https://api.github.com/repos/lucasbento/create-graphql","labels_url":"https://api.github.com/repos/lucasbento/create-graphql/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/lucasbento/create-graphql/issues/59/comments","events_url":"https://api.github.com/repos/lucasbento/create-graphql/issues/59/events","html_url":"https://github.com/lucasbento/create-graphql/issues/59","id":205580709,"number":59,"title":"Refactor to support plugin like babel","user":{"login":"sibelius","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibelius","html_url":"https://github.com/sibelius","followers_url":"https://api.github.com/users/sibelius/followers","following_url":"https://api.github.com/users/sibelius/following{/other_user}","gists_url":"https://api.github.com/users/sibelius/gists{/gist_id}","starred_url":"https://api.github.com/users/sibelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibelius/subscriptions","organizations_url":"https://api.github.com/users/sibelius/orgs","repos_url":"https://api.github.com/users/sibelius/repos","events_url":"https://api.github.com/users/sibelius/events{/privacy}","received_events_url":"https://api.github.com/users/sibelius/received_events","type":"User","site_admin":false},"labels":[{"id":487519234,"url":"https://api.github.com/repos/lucasbento/create-graphql/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":487519235,"url":"https://api.github.com/repos/lucasbento/create-graphql/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":498237560,"url":"https://api.github.com/repos/lucasbento/create-graphql/labels/new%20feature","name":"new feature","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-06T13:17:40Z","updated_at":"2017-02-07T09:17:39Z","closed_at":null,"body":"Babel plugin object example:\r\n\r\n```jsx\r\ntype PluginObject = {\r\n  pre?: Function;\r\n  post?: Function;\r\n  manipulateOptions?: Function;\r\n\r\n  visitor: ?{\r\n    [key: string]: Function | {\r\n      enter?: Function | Array<Function>;\r\n      exit?: Function | Array<Function>;\r\n    }\r\n  };\r\n};\r\n```\r\n\r\neach babel plugin returns an object like this.\r\n\r\nwe should think in CreateGraphQL PluginObject as well."},"comment":{"url":"https://api.github.com/repos/lucasbento/create-graphql/issues/comments/277942608","html_url":"https://github.com/lucasbento/create-graphql/issues/59#issuecomment-277942608","issue_url":"https://api.github.com/repos/lucasbento/create-graphql/issues/59","id":277942608,"user":{"login":"sibelius","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibelius","html_url":"https://github.com/sibelius","followers_url":"https://api.github.com/users/sibelius/followers","following_url":"https://api.github.com/users/sibelius/following{/other_user}","gists_url":"https://api.github.com/users/sibelius/gists{/gist_id}","starred_url":"https://api.github.com/users/sibelius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibelius/subscriptions","organizations_url":"https://api.github.com/users/sibelius/orgs","repos_url":"https://api.github.com/users/sibelius/repos","events_url":"https://api.github.com/users/sibelius/events{/privacy}","received_events_url":"https://api.github.com/users/sibelius/received_events","type":"User","site_admin":false},"created_at":"2017-02-07T09:17:39Z","updated_at":"2017-02-07T09:17:39Z","body":"First draft of Plugins\r\n\r\n## Read Database Schema Plugins\r\n### Motivation\r\nA read schema plugin should read a schema (collection/table definition) and return an object describing it.\r\n\r\n### Examples\r\n- create-graphql-mongoose\r\n- create-graphql-mysql\r\n- create-graphql-postgres\r\n- create-graphql-rethinkdb\r\n\r\n## Templates Plugins\r\n### Motivation\r\nCreateGraphql should output a different file for a different option provided, for instance: output a raw mutation or a relay mutation\r\n\r\n### Examples\r\n- create-graphql-type-raw\r\n- create-graphql-type-relay\r\n- create-graphql-mutation-raw\r\n- create-graphql-mutation-relay\r\n\r\nwe need to define inputs and outputs of these plugins"}}
{"actor":{"display_login":"sibelius"}}