{"action":"created","issue":{"url":"https://api.github.com/repos/apollostack/docs/issues/66","repository_url":"https://api.github.com/repos/apollostack/docs","labels_url":"https://api.github.com/repos/apollostack/docs/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/apollostack/docs/issues/66/comments","events_url":"https://api.github.com/repos/apollostack/docs/issues/66/events","html_url":"https://github.com/apollostack/docs/issues/66","id":153648060,"number":66,"title":"could you provide some example about how to use watchQuery with react?","user":{"login":"kadinwu","id":9687949,"avatar_url":"https://avatars.githubusercontent.com/u/9687949?v=3","gravatar_id":"","url":"https://api.github.com/users/kadinwu","html_url":"https://github.com/kadinwu","followers_url":"https://api.github.com/users/kadinwu/followers","following_url":"https://api.github.com/users/kadinwu/following{/other_user}","gists_url":"https://api.github.com/users/kadinwu/gists{/gist_id}","starred_url":"https://api.github.com/users/kadinwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadinwu/subscriptions","organizations_url":"https://api.github.com/users/kadinwu/orgs","repos_url":"https://api.github.com/users/kadinwu/repos","events_url":"https://api.github.com/users/kadinwu/events{/privacy}","received_events_url":"https://api.github.com/users/kadinwu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/apollostack/docs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-08T10:22:13Z","updated_at":"2016-05-13T06:48:36Z","closed_at":null,"body":"Per title.\r\nActually, i wanna to query some data by react-apollo query and also will get updated data if any data changes. \r\nBelow is my code, but it only query data once, won't get any updated categories data. Anything wrong? Could u please provide some example for it in document? Thanks a lot.\r\n\r\nimport { connect } from 'react-apollo';\r\n.......\r\nfunction mapQueriesToProps() {\r\n    return {\r\n        categories: {\r\n            query: gql`\r\n          {\r\n            categories{\r\n              id\r\n              title\r\n              description\r\n            }\r\n          }\r\n        `,\r\n            forceFetch: false,\r\n            returnPartialData: true,\r\n            pollInterval: 250\r\n        }\r\n    };\r\n}\r\n\r\nexport default connect({mapQueriesToProps})(Categories);"},"comment":{"url":"https://api.github.com/repos/apollostack/docs/issues/comments/218964958","html_url":"https://github.com/apollostack/docs/issues/66#issuecomment-218964958","issue_url":"https://api.github.com/repos/apollostack/docs/issues/66","id":218964958,"user":{"login":"kadinwu","id":9687949,"avatar_url":"https://avatars.githubusercontent.com/u/9687949?v=3","gravatar_id":"","url":"https://api.github.com/users/kadinwu","html_url":"https://github.com/kadinwu","followers_url":"https://api.github.com/users/kadinwu/followers","following_url":"https://api.github.com/users/kadinwu/following{/other_user}","gists_url":"https://api.github.com/users/kadinwu/gists{/gist_id}","starred_url":"https://api.github.com/users/kadinwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadinwu/subscriptions","organizations_url":"https://api.github.com/users/kadinwu/orgs","repos_url":"https://api.github.com/users/kadinwu/repos","events_url":"https://api.github.com/users/kadinwu/events{/privacy}","received_events_url":"https://api.github.com/users/kadinwu/received_events","type":"User","site_admin":false},"created_at":"2016-05-13T06:48:36Z","updated_at":"2016-05-13T06:48:36Z","body":"@johnthepink i am using 0.3.2. which version i can try? latest version 0.3.7?"}}