{"action":"created","issue":{"url":"https://api.github.com/repos/julienvincent/modelizr/issues/3","repository_url":"https://api.github.com/repos/julienvincent/modelizr","labels_url":"https://api.github.com/repos/julienvincent/modelizr/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/julienvincent/modelizr/issues/3/comments","events_url":"https://api.github.com/repos/julienvincent/modelizr/issues/3/events","html_url":"https://github.com/julienvincent/modelizr/issues/3","id":156358529,"number":3,"title":"Generalise Queries","user":{"login":"alexisvincent","id":1898669,"avatar_url":"https://avatars.githubusercontent.com/u/1898669?v=3","gravatar_id":"","url":"https://api.github.com/users/alexisvincent","html_url":"https://github.com/alexisvincent","followers_url":"https://api.github.com/users/alexisvincent/followers","following_url":"https://api.github.com/users/alexisvincent/following{/other_user}","gists_url":"https://api.github.com/users/alexisvincent/gists{/gist_id}","starred_url":"https://api.github.com/users/alexisvincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexisvincent/subscriptions","organizations_url":"https://api.github.com/users/alexisvincent/orgs","repos_url":"https://api.github.com/users/alexisvincent/repos","events_url":"https://api.github.com/users/alexisvincent/events{/privacy}","received_events_url":"https://api.github.com/users/alexisvincent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-23T20:22:53Z","updated_at":"2016-05-23T20:26:24Z","closed_at":null,"body":"I noticed that the current implementation assumes root level queries ```query``` and ```mutation``` (I think?). Please note that while this probably how most people are using graphql, modeller shouldn't make any assumptions about user top level queries. \r\n\r\nA top level query can have the following example forms (Again, I'm pretty sure this is how it works):\r\n```graphql\r\nquery Alias {}\r\nsomeThing Thingie {}\r\nmutation lol {}\r\n```\r\n\r\nUsers should be able to specify the top level exposed name and the specific query alias. Also, mutations are functionally equivalent to queries. The only difference is convention."},"comment":{"url":"https://api.github.com/repos/julienvincent/modelizr/issues/comments/221085668","html_url":"https://github.com/julienvincent/modelizr/issues/3#issuecomment-221085668","issue_url":"https://api.github.com/repos/julienvincent/modelizr/issues/3","id":221085668,"user":{"login":"julienvincent","id":8571121,"avatar_url":"https://avatars.githubusercontent.com/u/8571121?v=3","gravatar_id":"","url":"https://api.github.com/users/julienvincent","html_url":"https://github.com/julienvincent","followers_url":"https://api.github.com/users/julienvincent/followers","following_url":"https://api.github.com/users/julienvincent/following{/other_user}","gists_url":"https://api.github.com/users/julienvincent/gists{/gist_id}","starred_url":"https://api.github.com/users/julienvincent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienvincent/subscriptions","organizations_url":"https://api.github.com/users/julienvincent/orgs","repos_url":"https://api.github.com/users/julienvincent/repos","events_url":"https://api.github.com/users/julienvincent/events{/privacy}","received_events_url":"https://api.github.com/users/julienvincent/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T20:26:24Z","updated_at":"2016-05-23T20:26:24Z","body":"I'm pretty sure GraphQL's spec defines mutations as `mutation someName`. You are able to modify `someName` using a `.as()` modifier."}}
{"actor":{"display_login":"julienvincent"}}