{"action":"created","issue":{"url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/59","labels_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/59/comments","events_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/59/events","html_url":"https://github.com/relay-tools/react-router-relay/issues/59","id":109983076,"number":59,"title":"prepareVariables for root queries?","user":{"login":"idris","id":13989,"avatar_url":"https://avatars.githubusercontent.com/u/13989?v=3","gravatar_id":"","url":"https://api.github.com/users/idris","html_url":"https://github.com/idris","followers_url":"https://api.github.com/users/idris/followers","following_url":"https://api.github.com/users/idris/following{/other_user}","gists_url":"https://api.github.com/users/idris/gists{/gist_id}","starred_url":"https://api.github.com/users/idris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris/subscriptions","organizations_url":"https://api.github.com/users/idris/orgs","repos_url":"https://api.github.com/users/idris/repos","events_url":"https://api.github.com/users/idris/events{/privacy}","received_events_url":"https://api.github.com/users/idris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-06T10:53:03Z","updated_at":"2015-10-07T22:03:06Z","closed_at":"2015-10-07T20:53:29Z","body":"I'm trying to pass a variable to a root query, like this:\r\n```\r\nconst ServiceQueries = {\r\n  service: () => Relay.QL`query { service(id: $serviceId) }`,\r\n};\r\n// ...\r\n<Route name=\"editService\" path=\"/service/:serviceId\" component={ EditServicePage } queries={ ServiceQueries } />\r\n```\r\n\r\nProblem is, my graphQL schema expects `serviceId` to be an `Int`, but react-router-relay is passing it as a `String`.  is there any way to do something like `prepareVariables` for the root queries so that I can `parseInt(serviceId, 10)` before sending the query?"},"comment":{"url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/comments/146345900","html_url":"https://github.com/relay-tools/react-router-relay/issues/59#issuecomment-146345900","issue_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/59","id":146345900,"user":{"login":"idris","id":13989,"avatar_url":"https://avatars.githubusercontent.com/u/13989?v=3","gravatar_id":"","url":"https://api.github.com/users/idris","html_url":"https://github.com/idris","followers_url":"https://api.github.com/users/idris/followers","following_url":"https://api.github.com/users/idris/following{/other_user}","gists_url":"https://api.github.com/users/idris/gists{/gist_id}","starred_url":"https://api.github.com/users/idris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idris/subscriptions","organizations_url":"https://api.github.com/users/idris/orgs","repos_url":"https://api.github.com/users/idris/repos","events_url":"https://api.github.com/users/idris/events{/privacy}","received_events_url":"https://api.github.com/users/idris/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T22:03:06Z","updated_at":"2015-10-07T22:03:06Z","body":"@josephsavona this may be the wrong venue for this, but maybe you can point me in the right direction... Is there any way to just create a nodeID on the front-end, so rather than `service(id: $serviceId)` I can just use `node(id: $serviceNodeId)` and not have to add a separate root in my schema?"}}