{"action":"created","issue":{"url":"https://api.github.com/repos/relax/relax/issues/228","repository_url":"https://api.github.com/repos/relax/relax","labels_url":"https://api.github.com/repos/relax/relax/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/relax/relax/issues/228/comments","events_url":"https://api.github.com/repos/relax/relax/issues/228/events","html_url":"https://github.com/relax/relax/issues/228","id":152852966,"number":228,"title":"Question about Apollo Client","user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/relax/relax/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-03T19:17:19Z","updated_at":"2016-05-06T22:36:27Z","closed_at":null,"body":"Hi! I'm working on Apollo Client, which I'm hoping will soon be the most straightforward way to use Redux with GraphQL. Would you mind taking a quick look and telling me about your initial impressions?\r\n\r\nHere's the repo: https://github.com/apollostack/apollo-client\r\n\r\nHere are the docs: http://docs.apollostack.com/apollo-client/index.html\r\n\r\nWe're still building up some core features around pagination, optimistic UI, fragment composition, etc. Would be really interested to know which of those features would be important to a project like this, and maybe work together to make them happen!"},"comment":{"url":"https://api.github.com/repos/relax/relax/issues/comments/217580156","html_url":"https://github.com/relax/relax/issues/228#issuecomment-217580156","issue_url":"https://api.github.com/repos/relax/relax/issues/228","id":217580156,"user":{"login":"bruno12mota","id":4086031,"avatar_url":"https://avatars.githubusercontent.com/u/4086031?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno12mota","html_url":"https://github.com/bruno12mota","followers_url":"https://api.github.com/users/bruno12mota/followers","following_url":"https://api.github.com/users/bruno12mota/following{/other_user}","gists_url":"https://api.github.com/users/bruno12mota/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno12mota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno12mota/subscriptions","organizations_url":"https://api.github.com/users/bruno12mota/orgs","repos_url":"https://api.github.com/users/bruno12mota/repos","events_url":"https://api.github.com/users/bruno12mota/events{/privacy}","received_events_url":"https://api.github.com/users/bruno12mota/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T22:36:27Z","updated_at":"2016-05-06T22:36:27Z","body":"Of course, I'll be more than glad to help and possibly contribute. I'll have to do some work on Relate as well though since I'm using it another project as well. \r\n\r\nBatching queries is definitely important, not only on server side. Otherwise it's ignoring the advantage of having GraphQL in the first place. When components are requesting the same thing with different variables what I've done was namespacing the query. For example if two comp want pages with different variables it should make a query like the following:\r\n\r\n```\r\npages (...) {}\r\nrelate_0: pages (...) {}\r\n```\r\n\r\nI have some extra concerns that I don't know how you guys handle in Apollo that proved to be really helpful in Relate, for example, do you guys listen for mutations on data connectors.\r\n\r\nIn Relate if a data connector asks for a list of pages for example, I needed a way to when a new page is added from some mutation, it would be added to the list in that data connector. Thus the mutation property on the data conectors settings http://relax.github.io/relate/data-connect.html. With this you can also specify an order, and ideally you should even be able to sort it in between.\r\n\r\nI do see you guys also have mutate action http://docs.apollostack.com/apollo-client/core.html#mutate. Quite similar to relate.\r\n\r\nI'll look in more detail to Apollo and the code itself when I get some time and see where I can contribute or help 😄 "}}