Suppose that I have the following root query in a relay with react-router-relay project:
export default {
calc: () => Relay.QL`query queryType ($number: String) { auth (number: $number) }`,
}
Initial value of $number
comes from server like a hidden input and I want to use this number in my first query to server. How can I pass $number
to my query using the current react-router-relay API? This is neither a queryParam
or stateParam
.