{"action":"created","issue":{"url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/1","repository_url":"https://api.github.com/repos/tadejstanic/graphql-api-example","labels_url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/1/comments","events_url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/1/events","html_url":"https://github.com/tadejstanic/graphql-api-example/issues/1","id":195339792,"number":1,"title":"Indentation in the Model examples and a couple other questions.","user":{"login":"smolinari","id":3314957,"avatar_url":"https://avatars.githubusercontent.com/u/3314957?v=3","gravatar_id":"","url":"https://api.github.com/users/smolinari","html_url":"https://github.com/smolinari","followers_url":"https://api.github.com/users/smolinari/followers","following_url":"https://api.github.com/users/smolinari/following{/other_user}","gists_url":"https://api.github.com/users/smolinari/gists{/gist_id}","starred_url":"https://api.github.com/users/smolinari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolinari/subscriptions","organizations_url":"https://api.github.com/users/smolinari/orgs","repos_url":"https://api.github.com/users/smolinari/repos","events_url":"https://api.github.com/users/smolinari/events{/privacy}","received_events_url":"https://api.github.com/users/smolinari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-13T19:05:00Z","updated_at":"2016-12-14T15:37:49Z","closed_at":null,"body":"Hi,\r\n\r\nThanks for this example. \r\n\r\nJust a couple of questions. There are 8 space indentations in the models. Is there a particular reason for that? \r\n\r\nAlso, are you looking to expand this api example in any way? Would you consider also adding examples to use [dataloader](https://github.com/facebook/dataloader)?\r\n\r\nIs there a particular reason why you went with Koa and not Express?\r\n\r\nScott"},"comment":{"url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/comments/267066084","html_url":"https://github.com/tadejstanic/graphql-api-example/issues/1#issuecomment-267066084","issue_url":"https://api.github.com/repos/tadejstanic/graphql-api-example/issues/1","id":267066084,"user":{"login":"xpepermint","id":174279,"avatar_url":"https://avatars.githubusercontent.com/u/174279?v=3","gravatar_id":"","url":"https://api.github.com/users/xpepermint","html_url":"https://github.com/xpepermint","followers_url":"https://api.github.com/users/xpepermint/followers","following_url":"https://api.github.com/users/xpepermint/following{/other_user}","gists_url":"https://api.github.com/users/xpepermint/gists{/gist_id}","starred_url":"https://api.github.com/users/xpepermint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpepermint/subscriptions","organizations_url":"https://api.github.com/users/xpepermint/orgs","repos_url":"https://api.github.com/users/xpepermint/repos","events_url":"https://api.github.com/users/xpepermint/events{/privacy}","received_events_url":"https://api.github.com/users/xpepermint/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T15:37:49Z","updated_at":"2016-12-14T15:37:49Z","body":"Hey @smolinari. We all heavily invest our time into openousrce projects that make our code clean and long-term sustainable. \r\n\r\nIf you are building an API using GraphQL or Express/Koa framework, then [Contextable](https://github.com/xpepermint/contextablejs/) could be a perfect fit. There are also plans to add caching so you'll have dataloader integrated. About ODM/db-drivers, everything is added to the `context` object thus you can access it anywhere in your app/model. We are about a month away from using all this in production and we are very happy about the results so far. \r\n\r\nWhat's really cool about Contextable is that you can use it as [GraphQL root resolver](https://github.com/xpepermint/contextablejs/#graphql-root-resolver) directly (see the example [here](https://github.com/xpepermint/graphql-example)). The package is ment for server and browser and everything is easily extendable. If you use [Vue.js](http://vuejs.org), then there is a super simple plugin for form validation using contextable, called [vue-contextable](https://github.com/xpepermint/vue-contextable).\r\n\r\nI hope these helps. But then again, we have the same goal but we are all different thus I think you simple have to try other solutions and see what best fit into your code."}}
{"actor":{"display_login":"xpepermint"}}