{"action":"created","issue":{"url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/53","labels_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/53/comments","events_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/53/events","html_url":"https://github.com/relay-tools/react-router-relay/issues/53","id":108636200,"number":53,"title":"variables","user":{"login":"mmjd","id":8788785,"avatar_url":"https://avatars.githubusercontent.com/u/8788785?v=3","gravatar_id":"","url":"https://api.github.com/users/mmjd","html_url":"https://github.com/mmjd","followers_url":"https://api.github.com/users/mmjd/followers","following_url":"https://api.github.com/users/mmjd/following{/other_user}","gists_url":"https://api.github.com/users/mmjd/gists{/gist_id}","starred_url":"https://api.github.com/users/mmjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmjd/subscriptions","organizations_url":"https://api.github.com/users/mmjd/orgs","repos_url":"https://api.github.com/users/mmjd/repos","events_url":"https://api.github.com/users/mmjd/events{/privacy}","received_events_url":"https://api.github.com/users/mmjd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T11:04:03Z","updated_at":"2015-09-28T16:21:19Z","closed_at":"2015-09-28T14:29:54Z","body":"for the following query:\r\n```\r\nvar number = \"1232321\";\r\n\r\nexport default {\r\n\tauth: () => Relay.QL`query queryType ($number: String) { calc (number: $number ) }`,\r\n}\r\n```\r\n\r\nand the following route:\r\n```\r\n<Route\r\n      path=\"calc\" component={Calc} \r\n      queries={myQueries} }\r\n    />\r\n```\r\nhow should I pass my $number variable to the query? \r\ncurrently, I am get the following error:\r\n\r\n```\r\nUncaught Error: Invariant Violation: callsFromGraphQL(): Expected a declared value for variable, `$number`.\r\n```\r\n\r\nthanks"},"comment":{"url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/comments/143795494","html_url":"https://github.com/relay-tools/react-router-relay/issues/53#issuecomment-143795494","issue_url":"https://api.github.com/repos/relay-tools/react-router-relay/issues/53","id":143795494,"user":{"login":"mmjd","id":8788785,"avatar_url":"https://avatars.githubusercontent.com/u/8788785?v=3","gravatar_id":"","url":"https://api.github.com/users/mmjd","html_url":"https://github.com/mmjd","followers_url":"https://api.github.com/users/mmjd/followers","following_url":"https://api.github.com/users/mmjd/following{/other_user}","gists_url":"https://api.github.com/users/mmjd/gists{/gist_id}","starred_url":"https://api.github.com/users/mmjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmjd/subscriptions","organizations_url":"https://api.github.com/users/mmjd/orgs","repos_url":"https://api.github.com/users/mmjd/repos","events_url":"https://api.github.com/users/mmjd/events{/privacy}","received_events_url":"https://api.github.com/users/mmjd/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:21:19Z","updated_at":"2015-09-28T16:21:19Z","body":"thank you taion but we have the following in relay starwars example:\r\n\r\n```\r\nexport default class extends Relay.Route {\r\n  static queries = {\r\n    factions: () => Relay.QL`query { factions(names: $factionNames) }`,\r\n  };\r\n  static routeName = 'StarWarsAppHomeRoute';\r\n}\r\n```\r\n\r\n```\r\nReactDOM.render(\r\n  <Relay.RootContainer\r\n    Component={StarWarsApp}\r\n    route={new StarWarsAppHomeRoute({\r\n      factionNames: ['empire', 'rebels']\r\n    })}\r\n  />,\r\n  document.getElementById('root')\r\n);\r\n```\r\n\r\nyou mean there is no way of doing the same thing using react-router-relay? I need a way to use variables in my root query. thanks."}}